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, ie 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).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.