开发者

php_network_getaddresses: getaddrinfo

开发者 https://www.devze.com 2022-12-15 02:15 出处:网络
copy开发者_运维知识库() [function.copy]: php_network_getaddresses: getaddrinfo failed: When I use
copy开发者_运维知识库() [function.copy]: php_network_getaddresses: getaddrinfo failed:

When I use

copy("http://example.com/simple.jpg",$target);

that error occur.


Your server is unable to resolve the name example.com to an ip address, i.e. either the dns server is unreachable or there's a misconfiguration in your webserver's dns client.
How to resolve this issue depends on your operating system (and configuration).


  • copy will only work with URLs if fopen wrappers are active. Most likely they aren't on your system.
  • Another probable source of problems might be the server you request that file from just doesn't exist or cannot be resolved via DNS.
0

精彩评论

暂无评论...
验证码 换一张
取 消