note 52165 added to function.readfile
| From: | comicforum at lelon dot net | Date: | Fri, 22 Apr 2005 18:22:22 +0000 |
| Subject: | note 52165 added to function.readfile | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-88414@lists.php.net to get a copy of this message | ||
The problem with using readfile on large files isn't caused by your memory_limit setting.
Setting it to 4x the size of the file can still cause the file to be truncated. Use the
readfile_chunked found below.
----
Manual Page -- http://www.php.net/manual/en/function.readfile.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+52165
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52165&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52165&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52165&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52165&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52165&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+52165&report=yes
Search -- http://master.php.net/manage/user-notes.php