Re: Bug #10701 Updated: readfile usage on large files
| From: | Wez Furlong | Date: | Fri, 18 May 2001 10:19:13 +0000 |
| Subject: | Re: Bug #10701 Updated: readfile usage on large files | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-55749@lists.php.net to get a copy of this message | ||
On 2001-05-18 05:28:19, rasmus@php.net wrote:
> ID: 10701
> Status: Closed
> But a hint. Don't use readfile(), fopen() the file and read it a bit
at
a time instead of sticking the entire thing in memory.
Does readfile() really read the whole thing into memory first??
Perhaps we should change it so that it reads chunks and then spits them
out; it won't break any scripts and will make PHP more memory efficient as
that guy suggested.
Or am I missing something?
--Wez.