note 7338 deleted from feof by ronabop

From: Date: Sun, 27 Aug 2000 11:21:10 +0000
Subject: note 7338 deleted from feof by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-3455@lists.php.net to get a copy of this message
A web server closes the connection after it has sent the data, therefore feof() returns false. But when connected to a telnet server, how can you check that the server has sent its reply? I've tried a while loop but the script just hangs without any output, even though i flush after every line read from the socket.

« previous php.notes (#3455) next »