Re: adding code and beginning and end without includes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



blackwater dev wrote:
Is there a way to intercept and add code at the beginning and end of every
http request - WITHOUT having to put an include at the top and bottom of
every page?

This is something we need to be app specific so don't really want to do it
globally like chanse the php.ini or something.

stick this:

php_value auto_prepend_file 	'/path/to/prepend.inc'	
php_value auto_append_file	'/path/to/append.inc'

in /path/to/your/app/specific/stuff/.htaccess


Thanks!


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux