How to use auto_prepend_file in apache?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
justin.he
Forum Newbie
Posts: 7
Joined: Wed Aug 09, 2006 2:32 am
Location: China

How to use auto_prepend_file in apache?

Post 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)
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post 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...
justin.he
Forum Newbie
Posts: 7
Joined: Wed Aug 09, 2006 2:32 am
Location: China

Post by justin.he »

php_value auto_prepend_file "D:/AppServ/www/ycnow2/inc/command.inc.php"

I know now. see above.
Post Reply