Re: Finally, PDF Header for PDF stuffs that work....

From: Date: Tue, 14 Oct 2003 23:07:08 +0000
Subject: Re: Finally, PDF Header for PDF stuffs that work....
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-166127@lists.php.net to get a copy of this message
On Tue, 2003-10-14 at 17:33, Curt Zirzow wrote: > > > > //use fopen() instead of readfile... > > $fp = fopen($filepath, 'rb'); > > $pdf_buffer = fread($fp, $filesize); > > fclose ($fp); > > > > print $pdf_buffer; > > Loading the whole file in memory and not doing anything with it > before sending it to the client doesn't make much sense. Are you saying readfile() somehow avoids loading the whole file into memory? maybe it does, you learn everyday, I am just wondering... Mohamed~

« previous php.general (#166127) next »