PHP set_time_limit() – Script Execution Time
- Lucas
- February 18, 2012
PHP by default limits the execution time of a script to 30 seconds. If the script exceeds this time limit, the process is “killed”, in other words the process is terminated. To get around this problem there is the set_time_limit() function, which sets a new maximum execution time for the script, in seconds. Example: