我一次发送300个带有URL的新闻,2分钟后它再次刷新以发送下一个300。
但我收到此错误:
我已将最大执行设置为3600
ini_set('max_execution_time', 3600);
但是我经常遇到同样的错误。请帮助我找出解决方案。
最佳答案
我遇到了同样的问题,并使用ini_set('default_socket_timeout', 6000);
对其进行了修复。
http://php.net/manual/en/filesystem.configuration.php#ini.default-socket-timeout
关于php - 网关超时:The gateway did not receive a timely response from the upstream server,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/20471736/