note 27885 added to function.set-time-limit
| From: | ingo dot land at sapito dot nl | Date: | Mon, 23 Dec 2002 11:20:28 +0000 |
| Subject: | note 27885 added to function.set-time-limit | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-41221@lists.php.net to get a copy of this message | ||
The load time of very long PHP scripts (I have for a script of 8 MB generated for data migration)
can generate a time out before the set_time_limit function is evaluated.
Example 1 results in a time-out at the first line of the script:
//20 minutes time limit
set_time_limit(20*60);
//now the actual script starts
statement one;
statement two; ...
Example 2 works fine:
//20 minutes time limit
set_time_limit(20*60);
//data_migration.php contains statement one, statement two, ...
require 'data_migration.php.'
--
http://www.php.net/manual/en/function.set-time-limit.php
http://master.php.net/manage/user-notes.php?action=edit+27885
http://master.php.net/manage/user-notes.php?action=delete+27885
http://master.php.net/manage/user-notes.php?action=reject+27885