|
Posted by Simon on 01/12/06 17:59
>
> So I thought your provider was blocking that functionality.
>
> But You probably mean that they are working, but you cannot use the
> timeout
> on them? right?
Right,
>
> Nevermind, I am always slow on workingdays. :P
>
> And sorry: If that is your problem, I don't know the answer.
>
> However the manual says this:
>
> http://nl3.php.net/manual/en/function.fsockopen.php
> ----------------------------------------------
> Note: If you need to set a timeout for reading/writing data over the
> socket, use stream_set_timeout(), as the timeout parameter to fsockopen()
> only applies while connecting the socket.
> -----------------------------------------------
>
> Does that help?
Thanks a lot, you were right.
My fsockopen(...) was returning ok even if there was no connection
but adding stream_set_timeout($fp, 2); did the trick.
Thanks.
>
>
> Regards,
> Erwin Moller
Simon
Navigation:
[Reply to this message]
|