note 37526 added to function.fpassthru
| From: | spam at flatwan dot net | Date: | Tue, 18 Nov 2003 21:07:29 +0000 |
| Subject: | note 37526 added to function.fpassthru | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-60587@lists.php.net to get a copy of this message | ||
This might save someone some time. I created a program to list some rather large files and create
links for the end user to click on in order to download them (using the php function fpassthru()).
The problem I was having was it would make it half way through the download (about 377 megs) and the
script would terminate and the download would stop.
After doing some shotgun troubleshooting I discovered the php config option 'max_execution_time
= 30'. Upon changing it to 'max_execution_time = -1' the files >370 megs can be
downloaded without the script aborting.
Jon
----
Manual Page -- http://www.php.net/manual/en/function.fpassthru.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+37526
Delete -- http://master.php.net/manage/user-notes.php?action=delete+37526&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+37526&report=yes
Search -- http://master.php.net/manage/user-notes.php