note 55711 deleted from function.fgets by nlopess

From: Date: Thu, 11 Aug 2005 11:44:34 +0000
Subject: note 55711 deleted from function.fgets by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-93431@lists.php.net to get a copy of this message
Note Submitter: Jeff ---- I forgot to include a buffer retreval line at the end of my while loop :( It should look like this: <?php $handle = fopen("some_file", "r"); $buffer = fgets($handle, 4096); while (!feof($handle)) { echo $buffer; /* Do Usefull Stuff Here */ $buffer = fgets($handle, 4096); } ?>

« previous php.notes (#93431) next »