PHP -Shutdown -Funktion
register_shutdown_function(function () {
# code
});
Healthy Hare
register_shutdown_function(function () {
# code
});