note 1477 deleted from fread by sniper
| From: | sniper@php.net | Date: | Fri, 15 Sep 2000 05:14:35 +0000 |
| Subject: | note 1477 deleted from fread by sniper | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-5039@lists.php.net to get a copy of this message | ||
Yes you can read an entire file with fread(). Just use the string "filesize" as an
argument. Like this:
$body = fread($fhandle,filesize($textfile));
Be sure to open the file with fopen() and close it with fclose(). Else massive memory use will
result.