Click to See Complete Forum and Search --> : PHP onExit event?


tbirnseth
01-03-2008, 05:44 PM
I need to call a couple of cleanup functions whenever PHP completes execution or an exit() is encountered. Is there such a thing as an onExit() type event that I can register in the beginning of my page so I don't have to include("footer.php") at the bottom of every page?

bathurst_guy
01-03-2008, 05:46 PM
Not to my knowledge.

tbirnseth
01-03-2008, 06:14 PM
apparently register_shutdown_function(array(&$object, "function_name") ); seems to work under PHP5 anyway.