Re: handling large files w/readfile

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Robin Getz wrote:
Robin Getz wrote:

My next experiment is:
============================
$buff = "0";
while (!feof($fp)) {
   $buff = fread($fp, 4096);
   print $buff;
}
unset($buff);
fclose ($fp);
============================


Nope that doesn't work either - came back, and saw apache processes that were +450Meg. Changed it back to apache redirection for now.

If anyone has __any__ suggestions, I am more than happy to try. I would like to get this figured out.

Well, the above code does not use more than 4K of ram plus a bit of overhead. So if something is causing your processes to grow to 450M you need to look elsewhere because this code is definitely not the cause.


-Rasmus

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux