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] problem while reading on sockets ... On Thu, 26 Jul

[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

[PHP] Troubles with while(!feof($socket_id)) and compiling php-4.0.6 ... help please :(

2001-07-25 Thread Arnauld Dravet - smurfie
Hello, i was using php-4.0.3pl1 until now and never had any problem, except yesterday i had to develop a page on which i have to read on a socket ... problem is that: while(!feof($socket_id)) { echo fgets($socket_id, $len); } does not work: seems that FEOF is never detected so the PHP

[PHP] sockets help ...

2001-07-25 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 ? thanks Arnauld Dravet [EMAIL PROTECTED]