PHP time limit (max_execution_time)

Last modified: Thursday June 19th, 2025

By default, the PHP time limit (max_execution_time) is 30 seconds.

If needed, it is possible to increase the time limit in a PHP script using the set_time_limit() function.

Example:
set_time_limit(60);

If the PHP script takes more processor time than the allowed limit, you may get an error message like the following:
PHP Fatal error: Maximum execution time of 30 seconds exceeded in /data01/virtXXX/domeenid/www.example.ee/htdocs/test.php on line 5

Was this article helpful?
Views: 96

10 Years Beehosting!
Celebrate with 70% OFF + FREE Site Transfer.

Facebook Instagram linkedin
Menu