note 40422 added to function.register-shutdown-function
| From: | (James\[at\]tastyspoon\[dot\]com) | Date: | Wed, 03 Mar 2004 14:12:19 +0000 |
| Subject: | note 40422 added to function.register-shutdown-function | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-66166@lists.php.net to get a copy of this message | ||
I've been having problems where my script will continue to load in the browser until the
shutdown function is complete, this seems to fix that
// make sure headers get sent right away
if(ini_get('zlib.output_compression'))
ini_set('zlib.output_compression', 'Off');
if(ini_get('output_buffering'))
ini_set('output_buffering', '0');
// tell browser there was no response, should close the connection
header("HTTP/1.0 204 No Response");
// flush any output and register our function
flush();
register_shutdown_function('function');
any comments or suggestions appreciated :)
----
Manual Page -- http://www.php.net/manual/en/function.register-shutdown-function.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+40422
Delete -- http://master.php.net/manage/user-notes.php?action=delete+40422&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+40422&report=yes
Search -- http://master.php.net/manage/user-notes.php