Page 1 of 1
How to use auto_prepend_file in apache?
Posted: Tue Nov 07, 2006 1:31 am
by justin.he
I write <auto_prepend_file = "d:/appserv/www/ycnow2/inc/command.inc.php"> in httpd.conf when I restart apache , it tell me Invalid command , How to use it in apache?(not in php.ini)
Posted: Tue Nov 07, 2006 1:43 am
by timvw
Apache simply reads the file... And does not know php...
what you could do is generate a httpd.conf file with php, and then let apache load the generated file...
Posted: Tue Nov 07, 2006 1:45 am
by justin.he
php_value auto_prepend_file "D:/AppServ/www/ycnow2/inc/command.inc.php"
I know now. see above.