PHP error: php_network_getaddresses: getaddrinfo failed: (while getting information from other site.)

后端 未结 11 1127
时光说笑
时光说笑 2020-12-01 10:18

Trying to get information from an external source, I\'m receiving the following error:

Warning: php_network_getaddresses: getaddrinfo

11条回答
  •  青春惊慌失措
    2020-12-01 10:48

    If you can discount transient outages on the remote server you are trying to connect to, then that just leaves the local network config as a problem.

    Using the IP address instead of the hostname is only going to work for the default domain on the remote host.

    What happens when you try using www.google.com (or its IP address)? If you stil can't connect, then its something to do with the network between your server and the outside world.

提交回复
热议问题