Re: How to avoid maximum time
| From: | Nico Jansen - NiRo IT Consultants B.V. | Date: | Fri, 09 May 2003 00:56:45 +0000 |
| Subject: | Re: How to avoid maximum time | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-146940@lists.php.net to get a copy of this message | ||
Thanx
----- Original Message -----
From: "Ernest E Vogelsinger" <ernest@vogelsinger.at>
To: "Nico Jansen - NiRo IT Consultants B.V." <nicojansen@niro-it.nl>
Cc: "php mailing list" <php-general@lists.php.net>
Sent: Friday, May 09, 2003 12:24 AM
Subject: Re: [PHP] How to avoid maximum time
> 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/
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>