Re: PHP Max execution time
| From: | Micah Stevens | Date: | Thu, 15 Jul 2004 08:06:43 +0000 |
| Subject: | Re: PHP Max execution time | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-35264@lists.php.net to get a copy of this message | ||
Just use the set_time_limit function. You can go more than 30 seconds..
Unless you're in safe mode or something weird..
-Micah
On Thursday 15 July 2004 02:03 am, Lisi wrote:
> I am running a script (called through a browser) that checks entries in a
> table one at a time. As the table has grown, the script takes longer to run
> than is allowed - 30 seconds.
>
> Two questions:
> 1) I am on a virtual host so I'm not sure I have access to php.ini, but can
> I change this using .htaccess? Do I need any special permission for this?
>
> 2) Is there a way to change this just for one script, i.e. I did find the
> set_time_limit() function but can I use something like set_time_limit(300)
> or does it have to be less than 30?
>
> Thanks in advance!
>
> -Lisi