Re: handling large files w/readfile

From: Date: Mon, 27 Dec 2004 00:35:35 +0000
Subject: Re: handling large files w/readfile
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-205189@lists.php.net to get a copy of this message
Sebastian wrote:
i'm working on a app which output files with readfile() and some headers.. i read a comment in the manual that says if your outputting a file php will use the same amount of memory as the size of the file. so, if the file is 100MB php will use 100MB of memory.. is this true? I did a comparision study of readfile() and related functions you will see that results at http://www.raditha.com/wiki/Readfile_vs_include
What I discovered was that require,include() and file_get_contents() would consume more memory than the file size. Not so with readfile or fpasstru
if it is, how can i work around this? go ahead and use readfile.
-- Raditha Dissanayake. ------------------------------------------------------------------ http://www.radinks.com/print/card-designer/ | Card Designer Applet http://www.radinks.com/upload/ | Drag and Drop Upload

« previous php.general (#205189) next »