PHP version of ASP's Global.asa file

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mhuggins
Forum Newbie
Posts: 10
Joined: Mon Jul 18, 2005 10:23 pm
Location: Delaware, USA

PHP version of ASP's Global.asa file

Post 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?
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

There is a auto_prepend_file setting which you could use..
Post Reply