OK I've found it...
The time out value is a FLOAT. So a timeout of 1 second is 1.0.
Strange since the examples in the manual are integers.

Anyway this works:
$socket = fsockopen($urlArray["host"], $urlArray["port"], &$errnum,
&$errstr, 1.0);

"Peter Clarke" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> According to the manual;
> http://www.php.net/manual/en/function.fsockopen.php
> Depending on the environment, optional connect timeout may not be
available.
>
> Does anyone know what environment is needed for it to be available?
> I have Redhat Linux 7.1 - and the timeout doen't seem to work.
>
> Any ideas?
>
> Peter
>


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

Reply via email to