note 19178 added to function.connection-status
| From: | peter dot vogel at dasat dot com | Date: | Mon, 18 Feb 2002 22:30:07 +0000 |
| Subject: | note 19178 added to function.connection-status | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-26770@lists.php.net to get a copy of this message | ||
Hi...
i found a Problem with the connection status functions.. it seems allways
that PHP still execute codes and not get ever out of the status..
i only saw this because we update a mySQL database and i have zombies
running after every chat...
after long and many trys i found a solution to check if the Browser is
really alive
$myShellString = "netstat -n -a | grep $REMOTE_ADDR:$REMOTE_PORT |
wc -l";
$myStatus = shell_exec($myShellString);
do {
YOURCODE
} while ( (int)$myStatus > 0);
--
http://www.php.net/manual/en/function.connection-status.php
http://master.php.net/manage/user-notes.php?action=edit+19178
http://master.php.net/manage/user-notes.php?action=delete+19178
http://master.php.net/manage/user-notes.php?action=reject+19178