March 2002
Intermediate to advanced
528 pages
21h 29m
English
set_time_limit
void set_time_limit(int timeout)
Sets the timeout for the current script to
timeout seconds and restarts the timeout
timer. By default, the timeout is set to 30 seconds or the value for
max_execution_time set in the current
configuration file. If a script does not finish executing within the
time provided, a fatal error is generated and the script is killed.
If timeout is 0, the
script will never time out.