At 16.03.2002  20:59, you wrote:
>hi folks,
>
>I'm running a php script from a console - it includes quite a lot of heavy
>database queries - and takes a while to run.  Problem is that the the script
>keeps on timing out and I get
>
>Fatal error:  Maximum execution time of 30 seconds exceeded ...
>
>I've set the MAX EXECUTION time in php.ini to 30000 - but php doesn't seem
>to be reading it..
>
>Any ideas?

         set_time_limit (int seconds);

from the manual:
When called, set_time_limit() restarts the timeout counter from zero. In 
other words, if the timeout is the default 30 seconds, and 25 seconds into 
script execution a call such as set_time_limit(20) is made, the script will 
run for a total of 45 seconds before timing out.

Note that set_time_limit() has no effect when PHP is running in safe mode. 
There is no workaround other than turning off safe mode or changing the 
time limit in the configuration file.
HTH Oliver


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to