copy() [function.copy]: php_network_getaddresses: getaddrinfo failed:
When I use
copy("http://example.com/simple.jpg",$target);
that error occur.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Your server is unable to resolve the name
example.comto 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).