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~

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to