Hi There,
I've managed to fix the timeout problem I mentioned in a previous request, however I'm now having a different problem.
Whenever I use the below peice of code in my program, and then exit it throws up the following error:
PHP Warning: socket_select() unable to select [4]: Interrupted system call in /home/craigm/spam/spamterminator.php on line 46
Can somebody tell me what is wrong with it, or even perhaps an explanation upon what that error message actually means.
Thanks,
Craig Marchant
---- code snippet -----
// Loop through socket_select until activity detected, then accept connection
while ( true ) {
/ Prepare the read array /
$read = array($sock);
if (false === ($num_changed_sockets = socket_select($read, $write = NULL, $except = NULL, 10))) {
continue;
} else if ($num_changed_sockets > 0) {
AcceptIncommingConnection();
break;
}
}