note 25085 added to function.fpassthru
| From: | php-general at lists dot php dot net | Date: | Tue, 10 Sep 2002 09:38:04 +0000 |
| Subject: | note 25085 added to function.fpassthru | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-36434@lists.php.net to get a copy of this message | ||
fpassthru() works best for small files. In download manager scripts, it's best to determine the
URL of the file to download (you may generate it locally in your session data if you need so), and
then use HTTP __temporary__ redirects (302 status code, with a "Location:" header
specifying the effective download URL).
This saves your web server from maintaining PHP scripts running for long times during the file
downloadn and instead the download will be managed directly by the web server without scripting
support (consequence: less memory resources used by parallel downloads)...
--
http://www.php.net/manual/en/function.fpassthru.php
http://master.php.net/manage/user-notes.php?action=edit+25085
http://master.php.net/manage/user-notes.php?action=delete+25085
http://master.php.net/manage/user-notes.php?action=reject+25085