3

I have some db query in my php file, approximately after 40 second, happened INTERNAL SERVER ERROR, though in php.ini file this settings are set:

memory_limit         8192M
max_execution_time   120

I think this settingst is enough, other what reason may causes INTERNAL SERVER ERROR after long time running of php script?

4

2 回答 2

1

set

ini_set('max_execution_time' ,0);       
ini_set('set_memory_limit', -1)
于 2013-04-24T10:42:20.503 回答
1

这个问题很老,但这可能对某人有用。

将此用于循环的每次迭代sleep(0.5); 0.5 是用户定义的,您可以更改它。

于 2017-04-21T21:44:42.993 回答