Re: [PHP] problem while reading on sockets ...

2001-07-27 Thread Arnauld Dravet - smurfie
well because i'm not connecting to a web server ... - Original Message - From: "David Robley" <[EMAIL PROTECTED]> To: "Arnauld Dravet - smurfie" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, July 27, 2001 3:35 AM Subject: Re: [PHP]

Re: [PHP] problem while reading on sockets ...

2001-07-26 Thread David Robley
On Thu, 26 Jul 2001 23:43, Arnauld Dravet - smurfie wrote: > Hello, > > simple question: > > $sock = fsockopen($server_ip, $server_port, $errno, $errstr, 30); > while(!feof($sock)) echo fgets($sock,4096); > fclose($sock); > > why does the while() makes an infinite loop, like if FEOF was never > fo

[PHP] problem while reading on sockets ...

2001-07-26 Thread Arnauld Dravet - smurfie
Hello, simple question: $sock = fsockopen($server_ip, $server_port, $errno, $errstr, 30); while(!feof($sock)) echo fgets($sock,4096); fclose($sock); why does the while() makes an infinite loop, like if FEOF was never found ? what is the character used to tell if there's an EOF or not ? could my