faqts : Computers : Programming : Languages : PHP : Installation and Setup : Configure

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

4 of 5 people (80%) answered Yes
Recently 4 of 5 people (80%) answered Yes

Entry

Is it possible to get PHP to execute the 'auto_prepend_file' even if the main file does not exist

Jun 29th, 2004 12:21
Philip Olson, David O'Rourke,


Yes, have your web server (I'll assume Apache) execute it.  For 
example in httpd.conf you might have (.htaccess will work too):

php_value auto_prepend_file "/path/to/example.php"