note 108784 deleted from function.register-shutdown-function by danbrown

From: Date: Thu, 24 May 2012 17:19:50 +0000
Subject: note 108784 deleted from function.register-shutdown-function by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-188192@lists.php.net to get a copy of this message
Note Submitter: nend at gmail dot com ---- Commenting on a previous note PHP 5.0.4: 1. ob_callback 2. shutdown_func PHP 5.1.2: 1. shutdown_func 2. ob_callback In PHP 5.1.2 and later if you still need the shutdown function to be after the ob callback function you can call flush to call the ob callback then process your code. <?php register_shutdown_function('shutdownfunction'); function shutdownfunction() { //force PHP to call the ob callback if (ob_get_level() > 0) { ob_end_flush(); } //rest of your shutdown code here. } ?>

« previous php.notes (#188192) next »