note 51703 added to function.fread
| From: | mrhappy | Date: | Fri, 08 Apr 2005 02:02:54 +0000 |
| Subject: | note 51703 added to function.fread | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-87683@lists.php.net to get a copy of this message | ||
Just a note for anybody trying to implement a php handled download script -
We spent a long time trying to figure out why our code was eating system resources on large files..
Eventually we managed to trace it to output buffering that was being started on every page via an
include.. (It was attempting to buffer the entire 600 Megs or whatever size *before* sending data to
the client) if you have this problem you may want to check that first and either not start buffering
or close that in the usual way :)
Hope that prevents somebody spending hours trying to fix an obscure issue.
Regards :)
----
Manual Page -- http://www.php.net/manual/en/function.fread.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+51703
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+51703&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+51703&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+51703&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+51703&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+51703&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+51703&report=yes
Search -- http://master.php.net/manage/user-notes.php