Re: Apache SetHandler
| From: | Jason Wong | Date: | Thu, 03 Apr 2003 09:36:51 +0000 |
| Subject: | Re: Apache SetHandler | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-142099@lists.php.net to get a copy of this message | ||
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.
*/