Today I would like to show you increasing PHP script execution time limit using ini_set() function. PHP default script execution limit is 30 seconds.
In my recent project to prevent the script from timing out, I had to set the PHP script execution time directly from with in the php file. So to execute my script more then 30 second I added below shown line at top of my PHP script.
This will set to 5 minutes time limit:
ini_set('max_execution_time', 300); //300 seconds = 5 minutes