| Can we increase execution time of a PHP script?
Yes, we can increase PHP script time. Default max execution time for PHP scripts is basically 30 seconds. And if a PHP script runs longer than 30 seconds then PHP stop script and will produce error.
And we can increase this time to reduce the chance of error for time. We can increase the execution time by changing max_execution_time directive in our php.ini file. or we can call ini_set('max_execution_time',240);
which is equal to 4 min and it is called at the top of our PHP script. | | |