RE: [PHP] New lines
| From: | Robert Sossomon | Date: | Tue, 03 Feb 2004 19:26:46 +0000 |
| Subject: | RE: [PHP] New lines | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-176721@lists.php.net to get a copy of this message | ||
There was a wong answer and then there is the right answer:
$fp = fopen($file,"r");
while (!feof($fp))
{
$line = fgets($fp, 4096); //gets one line at a time
echo $line; // Or whatever else you want to do
}
fclose($fp);
HTH.
Robert