Re: php equivalent of application.cfc

2007-03-03 Thread Peter Boughton
] Sent: Friday, March 02, 2007 8:40 AM To: CF-Talk Subject: Re: php equivalent of application.cfc Heh, Can you 60 gigs a month bandwidth, 25 gigs webspace, with CF for less than £200 PA? T On 2 Mar 2007, at 13:26, Peter Boughton wrote

Re: php equivalent of application.cfc

2007-03-03 Thread Tom King
... Sunshinetechsolutions.com Hostnexus.com Those are 2 good hosts... Eric -Original Message- From: Tom King [mailto:[EMAIL PROTECTED] Sent: Friday, March 02, 2007 8:40 AM To: CF-Talk Subject: Re: php equivalent of application.cfc Heh, Can you 60 gigs a month bandwidth, 25 gigs webspace, with CF

OT: php equivalent of application.cfc

2007-03-02 Thread Tom King
Hi All, Sorry for the OT: I'm new to PHP, and am trying to find out if there is the equivalent of application.cfc onrequest() function: I.e, I want to be able to do this, without having to put the includes in every file: cffunction name=onrequest cfargument name=targetpage''

Re: OT: php equivalent of application.cfc

2007-03-02 Thread Robertson-Ravo, Neil (RX)
02 11:35:43 2007 Subject: OT: php equivalent of application.cfc Hi All, Sorry for the OT: I'm new to PHP, and am trying to find out if there is the equivalent of application.cfc onrequest() function: I.e, I want to be able to do this, without having to put the includes in every file

Re: php equivalent of application.cfc

2007-03-02 Thread Peter Boughton
There isn't one. You can mimic it with Apache stuff - but why bother when its far better to stick to the glorious CFML and not have to worry about stuff like this. Perhaps you could say why you want to use PHP, so we can convince you that your reasons are worthless and you should stay with us.

Re: OT: php equivalent of application.cfc

2007-03-02 Thread Rob Wilkerson
Hey Tom - It's been a couple of years (like 5), but as of PHP 4, there was a setting in php.ini that allowed you to define a file that would be called before every request the way Application.cfm is called. You have to define it explicitly, but it behaves exactly the same way, in my experience.

Re: php equivalent of application.cfc

2007-03-02 Thread Tom King
heheh, Not my choice, working on a site where they can't afford to move the hosting... If it was my choice, I'd rewrite the damn thing from scratch in CF T On 2 Mar 2007, at 11:24, Peter Boughton wrote: There isn't one. You can mimic it with Apache stuff - but why bother when its far

Re: OT: php equivalent of application.cfc

2007-03-02 Thread Tom King
That sounds like the sort of thing I'm after... Will now have to see if I can get to the ini file on shared hosting :( T On 2 Mar 2007, at 13:01, Rob Wilkerson wrote: Hey Tom - It's been a couple of years (like 5), but as of PHP 4, there was a setting in php.ini that allowed you to define

Re: php equivalent of application.cfc

2007-03-02 Thread Rick Root
On 3/2/07, Tom King [EMAIL PROTECTED] wrote: Not my choice, working on a site where they can't afford to move the hosting... If it was my choice, I'd rewrite the damn thing from scratch in CF I did a fair amount of PHP work between 6 and 3 years ago. I usually refuse PHP work now if

Re: OT: php equivalent of application.cfc

2007-03-02 Thread Tom Chiverton
On Friday 02 Mar 2007, Tom King wrote: I.e, I want to be able to do this, without having to put the includes in every file: Every PHP app I've looked at has an include_once() at the top of each file :-/ -- Tom Chiverton Helping to augmentatively transition revolutionary segments On:

Re: OT: php equivalent of application.cfc

2007-03-02 Thread Rob Wilkerson
That could work (as would the related require_once() function), but it's maintenance-intensive since it has to be explicitly included on every page. Look at the auto_prepend_file directive in php.ini (I looked it up and I think that's what I was referring to in my earlier post). If you need

Re: php equivalent of application.cfc

2007-03-02 Thread Randy Johnson
the project :-) -Randy - Original Message - From: Tom King [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Friday, March 02, 2007 6:35 AM Subject: OT: php equivalent of application.cfc Hi All, Sorry for the OT: I'm new to PHP, and am trying to find out

Re: OT: php equivalent of application.cfc

2007-03-02 Thread Tom Chiverton
On Friday 02 Mar 2007, Rob Wilkerson wrote: That could work (as would the related require_once() function), but it's maintenance-intensive since it has to be explicitly included on every page. OTTOMH: find . -name '*.php' -exec cp {} {}.1;cat header.php {}.1 {} \; :-) -- Tom Chiverton

Re: OT: php equivalent of application.cfc

2007-03-02 Thread Rob Wilkerson
Ugh. :-) On 3/2/07, Tom Chiverton [EMAIL PROTECTED] wrote: On Friday 02 Mar 2007, Rob Wilkerson wrote: That could work (as would the related require_once() function), but it's maintenance-intensive since it has to be explicitly included on every page. OTTOMH: find . -name '*.php' -exec

Re: OT: php equivalent of application.cfc

2007-03-02 Thread Tom King
hehe, so glad I don't have to deal with this on a regular basis - thanks for the tips! T On 2 Mar 2007, at 14:05, Rob Wilkerson wrote: Ugh. :-) On 3/2/07, Tom Chiverton [EMAIL PROTECTED] wrote: On Friday 02 Mar 2007, Rob Wilkerson wrote: That could work (as would the related

Re: php equivalent of application.cfc

2007-03-02 Thread Peter Boughton
Ah, I think that was the thing I was referring to with my Apache comment. Didn't realise it was actually a php.ini thing. That could work (as would the related require_once() function), but it's maintenance-intensive since it has to be explicitly included on every page. Look at the

Re: php equivalent of application.cfc

2007-03-02 Thread Peter Boughton
Ah, interesting... Did you see my survey about potential low-cost CFML hosting? /cheeky-plug :) heheh, Not my choice, working on a site where they can't afford to move the hosting... If it was my choice, I'd rewrite the damn thing from scratch in CF T On 2 Mar 2007, at 11:24, Peter Boughton

Re: php equivalent of application.cfc

2007-03-02 Thread Tom King
Heh, Can you 60 gigs a month bandwidth, 25 gigs webspace, with CF for less than £200 PA? T On 2 Mar 2007, at 13:26, Peter Boughton wrote: Ah, interesting... Did you see my survey about potential low-cost CFML hosting? /cheeky-plug :) heheh, Not my choice, working on a site where

RE: php equivalent of application.cfc

2007-03-02 Thread Andy Matthews
Subject: OT: php equivalent of application.cfc Hi All, Sorry for the OT: I'm new to PHP, and am trying to find out if there is the equivalent of application.cfc onrequest() function: I.e, I want to be able to do this, without having to put the includes in every file: cffunction name

Re: php equivalent of application.cfc

2007-03-02 Thread Rob Wilkerson
Don't know what to tell them, but I've done it. At least with PHP 4.x. I've included the php.ini doc. Search for auto_prepend_file. The second hit describes what it does. http://de3.php.net/manual/en/ini.core.php On 3/2/07, Andy Matthews [EMAIL PROTECTED] wrote: I just asked two pro level

RE: php equivalent of application.cfc

2007-03-02 Thread Kevin Aebig
headers before any output as well. !k -Original Message- From: Tom King [mailto:[EMAIL PROTECTED] Sent: Friday, March 02, 2007 5:36 AM To: CF-Talk Subject: OT: php equivalent of application.cfc Hi All, Sorry for the OT: I'm new to PHP, and am trying to find out if there is the equivalent

Re: php equivalent of application.cfc

2007-03-02 Thread Christopher Jordan
Yeah, I've done that too. It's something you have to set up in your php.ini file. I used it to act like application.cfm (instead of application.cfc).. it worked like a champ. Hopefully, I won't have to work on another PHP project for a long time. Viva la ColdFusion! :o) Cheers, Chris Rob

Re: php equivalent of application.cfc

2007-03-02 Thread Christopher Jordan
In fact, here are the two lines I included in my php.ini file (which on my fadoracore4 system is located in /etc) ; Automatically add files before or after any PHP document. auto_prepend_file = application.inc.php auto_append_file = onrequestend.inc.php I named the files anything I wanted and

RE: php equivalent of application.cfc

2007-03-02 Thread Kevin Aebig
To: CF-Talk Subject: Re: php equivalent of application.cfc In fact, here are the two lines I included in my php.ini file (which on my fadoracore4 system is located in /etc) ; Automatically add files before or after any PHP document. auto_prepend_file = application.inc.php auto_append_file

Re: php equivalent of application.cfc

2007-03-02 Thread Christopher Jordan
: Christopher Jordan [mailto:[EMAIL PROTECTED] Sent: Friday, March 02, 2007 9:57 AM To: CF-Talk Subject: Re: php equivalent of application.cfc In fact, here are the two lines I included in my php.ini file (which on my fadoracore4 system is located in /etc) ; Automatically add files before or after

Re: php equivalent of application.cfc

2007-03-02 Thread Tom Chiverton
On Friday 02 Mar 2007, Christopher Jordan wrote: In fact, here are the two lines I included in my php.ini file (which on my fadoracore4 system is located in /etc) On a typical shared host, you wouldn't be able to set those parameters though, would you ? -- Tom Chiverton Helping to

Re: php equivalent of application.cfc

2007-03-02 Thread Christopher Jordan
Probably not, but I didn't read where the original poster said he was using a shared host. And you're probably right, the shared host probably has these turned off. I was just trying to show that it *is* possible to prepend and append files in php. I'm also used to hosting my own. I'm

Re: php equivalent of application.cfc

2007-03-02 Thread Ryan Stille
You don't need to have access to the php.ini file. You can set those directives in an .htaccess file. I done this on shared hosting providers. If you did it in .htaccess the syntax would be: php_value auto_prepend_file Application.php php_value auto_append_file onRequestEnd.php -Ryan

Re: php equivalent of application.cfc

2007-03-02 Thread Rob Wilkerson
Cool. I didn't know that. Theoretically, then, you could have a separate auto_append and auto_prepend file for each web root or even directory within a webroot, right? On 3/2/07, Ryan Stille [EMAIL PROTECTED] wrote: You don't need to have access to the php.ini file. You can set those

RE: php equivalent of application.cfc

2007-03-02 Thread Kevin Aebig
It's not about access as you can set those values with php_ini(). It's about where or not the shared host blocks it or not. !k -Original Message- From: Ryan Stille [mailto:[EMAIL PROTECTED] Sent: Friday, March 02, 2007 11:17 AM To: CF-Talk Subject: Re: php equivalent of application.cfc

Re: php equivalent of application.cfc

2007-03-02 Thread Ryan Stille
Correct! They wouldn't be very useful if you could only set them for the server as a whole. If you set a prepend/append file in your webroot, and want it turned off in a subdirectory, you can put a .htaccess file in there and set the auto_prepend_file value to none (without quotes I believe)

Re: php equivalent of application.cfc

2007-03-02 Thread Eric Haskins
I run a shared PHP Hosting company and the .htaccess with prepend is how I setup phpfusebox sites Eric ~| Create Web Applications With ColdFusion MX7 Flex 2. Build powerful, scalable RIAs. Free Trial

Re: php equivalent of application.cfc

2007-03-02 Thread Peter Boughton
Um... WTF would you want twenty-five gigs of space for!? :S It's a possibility. Would probably require going with an unmanaged US-based server (rather than the managed UK-based one I'm currently looking at.) And depend on finding a minimum of ten people wanting a similar package. And it

RE: php equivalent of application.cfc

2007-03-02 Thread Eric Roberts
$50(USD) a month will get you pretty good CF hosting at a lot of places... Sunshinetechsolutions.com Hostnexus.com Those are 2 good hosts... Eric -Original Message- From: Tom King [mailto:[EMAIL PROTECTED] Sent: Friday, March 02, 2007 8:40 AM To: CF-Talk Subject: Re: php equivalent