Page 1 of 1

PHP version of ASP's Global.asa file

Posted: Tue May 23, 2006 7:44 pm
by mhuggins
For those of you familiar with ASP, does PHP have anything similar to the ASP's Global.asa file that is called when the server is started/stopped or a session is opened/closed?

Or, if not, what is the best way of initializing global application variables without needing a "required" method call at the beginning of each PHP file?

Posted: Wed May 24, 2006 1:29 am
by timvw
There is a auto_prepend_file setting which you could use..