Re: [PHP] non blocking fsockopen

2006-08-03 Thread Richard Lynch
On Fri, July 28, 2006 7:21 am, clive wrote: > I know in PHP 5 you can use stream_socket_client() and set the flag to > STREAM_CLIENT_ASYNC_CONNECT|STREAM_CLIENT_CONNECT which opens the > socket > in a non blocking mode. > > in php 4 you can use fsockopen and then set the socket to non > blocking. >

[PHP] non blocking fsockopen

2006-07-28 Thread clive
I know in PHP 5 you can use stream_socket_client() and set the flag to STREAM_CLIENT_ASYNC_CONNECT|STREAM_CLIENT_CONNECT which opens the socket in a non blocking mode. in php 4 you can use fsockopen and then set the socket to non blocking. The problem with this is that the fsockopen blocks unt