1. Home
  2. Technical
  3. PHP
  4. PHP time limit (max_execution_time)

PHP time limit (max_execution_time)

The default PHP timeout (max_execution_time) is 30 seconds. This is the time limit for a PHP script for how many seconds the script can use 100% CPU time.

It’s possible to increase the time limit using a PHP script with the set_time_limit() function.



If a PHP script is taking more CPU time than the allowed limit, an error message similar to the following will be generated:

PHP Fatal error:  Maximum execution time of 30 seconds exceeded in /data01/virtXXX/domeenid/www.example.ee/htdocs/test.php on line 5
Updated on 19. Apr 2024

Was this article helpful?

Related Articles