note 43273 added to function.connection-status
| From: | toppi at kacke dot de | Date: | Wed, 16 Jun 2004 13:06:50 +0000 |
| Subject: | note 43273 added to function.connection-status | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-71143@lists.php.net to get a copy of this message | ||
Notice !
if you running a loop (while, foeach etc..) you have to send something to the browser to check the
status.
Example:
while(1){
if (connection_status()!=0){
die;
}
}
doesnt work, if the user break/close the browser.
But a:
while(1){
Echo "\n"; //<-- send this to the client
if (connection_status()!=0){
die;
}
}
will work :)
i hope it will help some of you to safe some time :)
Toppi
----
Manual Page -- http://www.php.net/manual/en/function.connection-status.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+43273
Delete -- http://master.php.net/manage/user-notes.php?action=delete+43273&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+43273&report=yes
Search -- http://master.php.net/manage/user-notes.php