file_get_contents(): php_network_getaddresses: getaddrinfo failed

后端 未结 3 2434
青春惊慌失措
青春惊慌失措 2021-02-19 21:07

I\'m trying to update some values from one server to another server with a cron job. I use file_get_contents().

The strange thing is that this fails occasionally. One min

3条回答
  •  不要未来只要你来
    2021-02-19 21:41

    This is because of connection limits on 2nd server, and I believe that you have set short time intervals for the cron job. As you know, servers control consecutive connections from each IP. You may choose a longer time interval to resolve this problem.

提交回复
热议问题