阅读背景:

我可以包含另一个PHP脚本来继续for循环执行,以防止服务器超时到期max_execution_time

来源:互联网 

I have a php script which inserts data into database table with a function call, and the function is in the for loop. I want 120+ iterations, but due max_execution_time=30 and unfortunately i cant change or edit php.ini file on my shared hosting. As the execution of the script stops at approx. 55-60 iterations of for loop. I was thinking that what if i include another php file like, include("script2.php"); can i continue the for loop from 61 and end at 120 in this script. So that i can complete all 120 iterations. Please correct me if i am wrong, i am new to php.I have a php script which inserts data into dat




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: