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) and it will turn it off. If you really wanted to emulate the way ColdFusion looks for and executes Application.cfm you could put some code in your auto prepended file that looks for Application.php in the same file as the current script. If its not found, check the parent directory, etc. etc. -Ryan Rob Wilkerson wrote: > 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 >> 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 >> >> Christopher Jordan wrote: >> >>> 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 >>> fortunate enough to work for a small company who is in the business of >>> hosting for our clients. >>> >>> Chris >>> >>> Tom Chiverton wrote: >>> >>> >>>> 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 ? >>>> >>>> >>>> >>>> >>> >> >> >> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & Flex 2. Free Trial http://www.adobe.com/products/coldfusion/flex2/ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:271346 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

