September 2001
Intermediate to advanced
768 pages
32h 45m
English
void set_time_limit(int seconds); Sets the maximum script execution time.
Returns:
void
Description:
Specifies how long the script can run, in seconds. A useful function for avoiding infinite loops or connection timeouts to sockets or databases. The default time limit is 30 seconds or the value of max_execution_time, which can be specified in the PHP initialization file. A zero (0) value means that the script will not time out at all.
Example:
// script dies after 60 secs set_time_limit(60);<scripts;execution time;configuring> |
Read now
Unlock full access