1
下载不管我使用的功能坏掉的图片文件:PHP保存从URL
copy("http:" . $imglink, "images/" . substr($imglink, 34));
//or
file_put_contents("images/" . substr($imglink, 34), file_get_contents("http:" . $imglink));
//or
file_put_contents("images/" . $productData['imagefile'], fopen($productData['imagelink'], 'r'));
文件的保存位置断裂,大近4倍。日志中没有错误, 已经确认我可以通过浏览器从远程服务器手动下载健康图像。有任何想法吗?