Re: Downloading Large (100M+) Files
| From: | Robin Getz | Date: | Thu, 04 Nov 2004 16:22:18 +0000 |
| Subject: | Re: Downloading Large (100M+) Files | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-201186@lists.php.net to get a copy of this message | ||
Klaus Reimer [k@ailis.de] wrote:
If this theory is true, you may try fpassthru().replaced: readfile($name); with: $fp = fopen($name, 'rb'); fpassthru($fp); and now I don't loose 250 Meg of memory every time I download a 250Meg file. If someone wants to add this to the readfile() php manual - great. Thanks Robin