This article describes how to set the maximum execution time for PHP scripts by using the max_execution_time directive in an .htaccess file.
By default, the maximum execution time for PHP scripts is set to 30 seconds. If a script runs for longer than 30 seconds, PHP stops the script and reports an error. You can control the amount of time PHP allows scripts to run by changing the max_execution_time directive in an .htaccess file.
To change the maximum execution time for your PHP scripts, follow these steps:
php_value max_execution_time 30
<?php phpinfo(); ?>
Subscribe to receive weekly cutting edge tips, strategies, and news you need to grow your web business.
No charge. Unsubscribe anytime.
Did you find this article helpful? Then you'll love our support. Experience the A2 Hosting difference today and get a pre-secured, pre-optimized website. Check out our web hosting plans today.