Can be resolved:
Set_time_limit (900);
This function specifies the maximum execution time for the current PHP script,
Although the set value is 900 seconds, actually
Maximum execution time max_execution_time value in =php.ini-the time the current script has been executed + setpoint
If max_execution_time=30 in php.ini, the current script has been executed for 10 seconds, then:
Maximum execution time =30-10+900=920 seconds.
After this modification, the PHP script successfully updated 200,000 records.
The above is adopted in the environment of Lapp.
In addition, it is said that this method is not valid in Windows environment, in the Windows environment need to specify the Max_execution_time value in php.ini.
This condition is not tested.
http://www.bkjia.com/PHPjc/320258.html www.bkjia.com true http://www.bkjia.com/PHPjc/320258.html techarticle can be resolved: Set_time_limit (900); This function specifies the maximum execution time of the current PHP script, although the set value is 900 seconds, actually the maximum execution time =php.ini in the MAX_EX ...