Re: working with files
| From: | Matt Matijevich | Date: | Wed, 28 Jan 2004 19:51:49 +0000 |
| Subject: | Re: working with files | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-176110@lists.php.net to get a copy of this message | ||
replace
<?php
$handle = fopen ($filename, "r");
do {
$data = fread($handle, 128);
if (strlen($data) == 0) {
break;
}
print ("$data<br>");
} while (true);
fclose($handle);
?>
with this
<?php
$handle = fopen ($filename, "r");
do {
$data = fread($handle, 128);
if (strlen($data) == 0) {
break;
}
print ("$data<br>\n");
} while (true);
fclose($handle);
?>