note 52302 added to function.readfile
| From: | TheDayOfCondor at osu1 dot php dot net | Date: | Wed, 27 Apr 2005 13:24:41 +0000 |
| Subject: | note 52302 added to function.readfile | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-88621@lists.php.net to get a copy of this message | ||
I think that readfile suffers from the maximum script execution time. The readfile is always
completed even if it exceed the default 30 seconds limit, then the script is aborted.
Be warned that you can get very odd behaviour not only on large files, but also on small files if
the user has a slow connection.
The best thing to do is to use
<?
set_time_limit(0);
?>
just before the readfile, to disable completely the watchdog if you intend to use the readfile call
to tranfer a file to the user.
----
Manual Page -- http://www.php.net/manual/en/function.readfile.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+52302
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52302&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52302&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52302&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52302&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52302&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+52302&report=yes
Search -- http://master.php.net/manage/user-notes.php