Name
set_time_limit
Synopsis
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.
Get Programming PHP, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.