note 57971 added to function.fread
| From: | StuartColville-muffinresearch dot co dot uk at osu1 dot php dot net | Date: | Thu, 20 Oct 2005 12:13:48 +0000 |
| Subject: | note 57971 added to function.fread | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-97295@lists.php.net to get a copy of this message | ||
I was working on a script that was uploading image files, resizing them and then using fread to
write them into a database as a blob.
For some reason the images were being truncated. I replaced the use of fread with file_get_contents
as it is more efficient than fread and the truncation was prevented.
----
Manual Page -- http://www.php.net/manual/en/function.fread.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+57971
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+57971&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+57971&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+57971&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+57971&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+57971&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+57971&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+57971&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+57971&report=yes
Search -- http://master.php.net/manage/user-notes.php