line break part2
| From: | Gary | Date: | Fri, 27 Apr 2001 17:54:03 +0000 |
| Subject: | line break part2 | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-50665@lists.php.net to get a copy of this message | ||
Thanks for everyone's help on the original question. Now that I have gotten the line breaks in a file, How do I get the file out with the breaks? Also, does anyone know of a good tutorial on file formatting.
<?php
$location = "log_test.txt";
$toread = fopen($location, "r");
set_magic_quotes_runtime(0);
$content = fread($toread, filesize($location));
fclose($toread);
echo "$content";
?>
TIA
Gary