Warm tip: This article is reproduced from serverfault.com, please click

How to increase maximum execution time in php

发布于 2013-04-23 13:51:58

I want to increase maximum execution time in php , not by changing php.ini file.

I want to Increase it from my php file.

Is this possible?

Questioner
Pritesh Mahajan
Viewed
0
10.2k 2019-08-08 06:28:02
ini_set('max_execution_time', '300'); //300 seconds = 5 minutes
ini_set('max_execution_time', '0'); // for infinite time of execution 

Place this at the top of your PHP script and let your script loose!

Taken from Increase PHP Script Execution Time Limit Using ini_set()