PHP Increase Script Execution Time Limit
Sometimes you need to execute a large php script. Because of PHP’s default execution time settings that’s only 30 seconds, which causes script execution timeout error. But you can avoid this error by increasing script execution time limit in your PHP.INI file or you can set it in your PHP script.
Here in this post, I will explain, how easily you can increase your PHP script execution time to execute large php scripts.
Edit PHP.INI File
- max_execution_time=500
OR
Edit .htaccess file
- php_value max_execution_time 500
OR
Set Execution Time in your PHP Script
- ini_set(‘max_execution_time’, 500);
You can place this ini_set function at the top of your PHP script.
Follow @phpzag
