Something unusual is happening to me and I want to know if this is usual or what I'm missing. I'm trying to use the register_shutdown_function() routine to define a shutdown function that cleans up some files and socket stuph for me when a user aborts the page load (or clicks on a link before the page is done).
I'm not having much luck. Just as a test, I made the following:
function take_it_easy() {
system('echo "Inside abort" >>/path/to/abortdebug');
system("cat /tmp/longsysuse >>/path/to/abortdebug");
}
}
//Handle user aborts
register_shutdown_function("take_it_easy");
Anyone know what's wrong with this?
Sorry if it's already been covered, but the search engine is pooched right now.
--Robert