Re: How to avoid maximum time
| From: | Ernest E Vogelsinger | Date: | Thu, 08 May 2003 23:24:04 +0000 |
| Subject: | Re: How to avoid maximum time | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-146933@lists.php.net to get a copy of this message | ||
At 02:16 09.05.2003, Nico Jansen - NiRo IT Consultants B.V. said:
--------------------[snip]--------------------
>Hello PHP gurus,
>
>Is there a way to avoid the maximum execution time from PHP ?
>
>Thanx
--------------------[snip]--------------------
set_time_limit() http://www.php.net/manual/en/function.set-time-limit.php
is the function you need.
Be aware that this is only of marginal help if your PHP script is called by
a webserver - they usually have a time limit for a page to execute as well
(30secs the most). This function is used best when running from the command
line, as a cron job, for example.
--
>O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/