You should read up on socket_select

On Tue, 8 Oct 2002, Scott Dowd wrote:

> 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 ...... Script times out.
>
> $fp = fsockopen ($servername, 524, $errno, $errstr, 30);
>
>     if (!$fp) {
>      ........
>     }
>
>     else {
>      ........
>     }
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to