Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
|
Yep.
Use the auto_prepend_file option of the php configuration.
You can specify a script that should be prepended (ie: included before running the php page asked).
http://www.php.net/manual/en/ini.cor...o-prepend-file
By the way, there is a auto_append_file configuration too, if you want to run it after the page parsing.
Example as in my code (apache virtualhost config):
Code:
...
setEnv LOCATION dev
php_admin_value auto_prepend_file /var/www/webshots/htdocs/libs/prepend/prepend.php
php_admin_value auto_append_file /var/www/webshots/htdocs/libs/append/append.php
...
As I understand the manual, an .htaccess definition should be possible too.
__________________
Only a biker knows why a dog sticks his head out the window.
Last edited by tripy; 02-19-2009 at 01:47 PM..
|