Page 1 of 1
PHP timeout
Posted: Sun Feb 02, 2003 9:34 pm
by redcircle
I have a script that reads in a dir and makes thumbnails for them. The problem that I am having is that when processing more than 35 images the script gives a timeout error because it is taking longer than 30seconds to process the photos... anyone have a workaround? Like to temporarily set the timeout to like 3 minutes.
Posted: Sun Feb 02, 2003 9:48 pm
by lazy_yogi
http://www.php.net/manual/en/function.s ... -limit.php
from that page :
void set_time_limit (int seconds)
Set the number of seconds a script is allowed to run. If this is reached, the script returns a fatal error. The default limit is 30 seconds or, if it exists, the max_execution_time value defined in the configuration file.
If seconds is set to zero, no time limit is imposed
Posted: Sun Feb 02, 2003 10:20 pm
by redcircle
I would have found it sooner but the search engine at php.net doesn't seem to be working..
Posted: Sun Feb 02, 2003 11:53 pm
by Stoker
You may want to download the PHP manual, the .CHM version is an excellent quick reference with searching capabilities..