note 19178 rejected from function.connection-status by didou
| From: | didou@php.net | Date: | Tue, 19 Aug 2003 14:16:14 +0000 |
| Subject: | note 19178 rejected from function.connection-status by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-54680@lists.php.net to get a copy of this message | ||
Note Submitter: peter.vogel@dasat.com
----
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);