Re: [PHP] Socket_connect producing errors that show no reason

2005-01-17 Thread Adam Hubscher
Jochem Maas wrote: Adam Hubscher wrote: The code looks like this: if(($sock = socket_create(AF_INET,SOCK_STREAM,SOL_TCP)) < 0){ print("Couldn't Create Socket: " . socket_strerror(socket_last_error()). "\n"); } socket_set_option($sock, SOL_SOCKET,SO_RCVTIMEO, array('sec' => 1, 'usec' => 0)); $

Re: [PHP] Socket_connect producing errors that show no reason

2005-01-17 Thread Jochem Maas
Adam Hubscher wrote: The code looks like this: if(($sock = socket_create(AF_INET,SOCK_STREAM,SOL_TCP)) < 0){ print("Couldn't Create Socket: " . socket_strerror(socket_last_error()). "\n"); } socket_set_option($sock, SOL_SOCKET,SO_RCVTIMEO, array('sec' => 1, 'usec' => 0)); $output = ''; for($i

[PHP] Socket_connect producing errors that show no reason

2005-01-17 Thread Adam Hubscher
The code looks like this: if(($sock = socket_create(AF_INET,SOCK_STREAM,SOL_TCP)) < 0){ print("Couldn't Create Socket: " . socket_strerror(socket_last_error()). "\n"); } socket_set_option($sock, SOL_SOCKET,SO_RCVTIMEO, array('sec' => 1, 'usec' => 0)); $output = ''; for($i = 0; $i < count($fil