Heya, does anyone know if there is a way for a function to be called in the event of script termination.
thanks
you could make another function that executes the script and then exits; eg.
function kill(){ //do something exit; }
thanks, that will be my work_around, i was hoping for an event handler analogous to session_set_save_handler, but for a script exit..
I found it! if anyone is interested, it's:
int register_shutdown_function ( callback function)