Re: Globally runnable PHP script
| From: | Matt McClanahan | Date: | Tue, 17 Oct 2000 20:49:15 +0000 |
| Subject: | Re: Globally runnable PHP script | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-20709@lists.php.net to get a copy of this message | ||
On Wed, 18 Oct 2000, Srinivasan Ramakrishnan wrote:
> Hi,
>
> In ASP there is global.asa, in CFML there is application.cfm, what is the
> equivalent in PHP?
>
> In other words, is there a special file I can execute before the accessed
> PHP file is parsed.
Sure, you can set any file up to be parsed before a script (And after, for
that matter).
Check out auto_prepend_file
http://www.php.net/manual/html/configuration.html#ini.auto-prepend-file
Matt