Re: handling large files w/readfile
| From: | Rasmus Lerdorf | Date: | Sun, 02 Jan 2005 03:10:04 +0000 |
| Subject: | Re: handling large files w/readfile | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-205467@lists.php.net to get a copy of this message | ||
Robin Getz wrote:
Robin Getz wrote: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. -RasmusMy 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.