note 27885 deleted from function.set-time-limit by nlopess
| From: | nlopess@php.net | Date: | Wed, 04 Feb 2004 17:02:21 +0000 |
| Subject: | note 27885 deleted from function.set-time-limit by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-64641@lists.php.net to get a copy of this message | ||
Note Submitter: ingo.land@sapito.nl
----
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.'