note 89262 deleted from function.fread by danbrown
| From: | danbrown@php.net | Date: | Sat, 28 Feb 2009 18:44:13 +0000 |
| Subject: | note 89262 deleted from function.fread by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-151260@lists.php.net to get a copy of this message | ||
Note Submitter: Gabrola
----
@shaunspiller
The reason is that you used a wrong second parameter here
$x = fread($fp, 1024 * 1024);
it should have been
$x = fread($fp, filesize('temp.txt'));