[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Maximum execution time exceeded in
- Subject: Re: [cobalt-users] Maximum execution time exceeded in
- From: "Steve Werby" <steve-lists@xxxxxxxxxxxx>
- Date: Mon Apr 1 21:09:12 2002
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
"FIOLLE Frédéric" <cobalt@xxxxxxxxxxxxxxxx> wrote:
> how to change the time of execution for a script on a raq3i?
The only common language I'm aware of that has a maximum execution time by
default is PHP. I'll assume that you're referring to a PHP script. See
http://www.php.net/manual/en/function.set-time-limit.php.
Add the following to the top of your script:
set_time_limit( desired_limit_in_seconds );
To change the default from 30 seconds on *all* scripts on the server modify
the max_execution_time setting in php.ini. To change the max execution time
for all scripts in a site, add this to the site's VirtualHost container in
httpd.conf:
php_value max_execution_time desired_limit_in_seconds
To change it for all script's in a site's directory, create an .htaccess
file and add:
php_value max_execution_time desired_limit_in_seconds
Another alternative is to use ini_set(). See:
http://www.php.net/manual/en/function.ini-set.php
As you can see, there are a number of ways to skin the cat. Enjoy!
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/