fsockopen timeout not working
| From: | Scott Dowd | Date: | Tue, 01 Oct 2002 01:48:39 +0000 |
| Subject: | fsockopen timeout not working | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-16086@lists.php.net to get a copy of this message | ||
I have a PHP application that goes out an checks all our servers via
SNMP when requested. Trouble is, if the server is not available, the
fsockopen never times out and therefore never moves onto the next
server. I am running 4.2.3 on IIS (NT4). I read there was a bug with
previous versions, but I have just upgraded and still seems to be a
problem ......
$fp = fsockopen ($servername, 524, $errno, $errstr, 30);
if (!$fp) {
........
}
else {
........
}