我正在尝试从 URL 复制图像,例如:http://www.slate.com/content/dam/slate/articles/technology/technology/2013/01/130110_TECH_SamsungCES.jpg.CROP.rectangle3-large.jpg
可通过浏览器访问,但错误是:*Warning: copy() [function.copy]: php_network_getaddresses: getaddrinfo failed: Name or service not known in*
$file_name="http://www.slate.com/content/dam/slate/articles/technology/technology/2013/01/130110_TECH_SamsungCES.jpg.CROP.rectangle3-large.jpg";
copy($file_name,"uploads/");
我使用时没有返回错误move_uploaded_file($file_name,"uploads/");
,文件也没有被复制。
这里有什么问题的任何线索?