On Thursday 03 April 2003 17:06, Zoff wrote: > ich have a question with apache and mod_perl I can write a Handler in perl > which is called before anything else happens. this allows me to write all > sorts of auth stuff. is there something similar in PHP. > > e.g.: > > in httpd.conf > > <Directory /foobar> > SetHandler MyFoo.php > </Directory>
Have a look at the auto_prepend_file and auto_append_file settings in php.ini. Note that you can set these per domain/directory by appropriate entries in httpd.conf/.htaccess. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* Things equal to nothing else are equal to each other. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php