note 6404 deleted from fopen by jmoore

From: Date: Thu, 24 Aug 2000 10:57:59 +0000
Subject: note 6404 deleted from fopen by jmoore
Groups: php.notes 
Request: Send a blank email to php-notes+get-3059@lists.php.net to get a copy of this message
feof() and URL's: <pre> $fp = fopen("$url","r"); while(!eof($fp)) { do something; } </pre> Do not work for me (the script seems to not finish the connection until the server don't); I had to write like this: <pre> $fp = fopen("$url","r"); while($line = fgets($fp,2048)) { do something; } </pre>

« previous php.notes (#3059) next »