problem while reading on sockets ...

From: Date: Thu, 26 Jul 2001 14:13:05 +0000
Subject: problem while reading on sockets ...
Groups: php.general 
Request: Send a blank email to php-general+get-59744@lists.php.net to get a copy of this message
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 problem come from the server i'm connecting to which to not send a "legit" string ? thanks Arnauld Dravet smurfie@artefact21.net

« previous php.general (#59744) next »