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
Edit .htaccess file
Set Execution Time in your PHP Script
You can place this ini_set function at the top of your PHP script.