Re: Newbee question?
| From: | Rasmus Lerdorf | Date: | Sat, 15 Jul 2000 18:28:07 +0000 |
| Subject: | Re: Newbee question? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-6761@lists.php.net to get a copy of this message | ||
> Is there a function in PHP that always executes first before loading
> anything else in a directory. In Cold Fusion it's called an application.cfm
> and ASP has a global.asp. You put the file inside a directory and any time a
> file is requested from that directory the script in the global or
> application file is executed first. It is how most login scripts are set up.
> I suspect PHP has something along this line but what is it called? I've
> looked in my book but w/o having some idea of what it is called in PHP I'm
> not having much luck finding it.
You define it yourself using the auto_prepend_file directive in your
php.ini file, or you can define it in your httpd.conf.
-Rasmus