Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以将远程图像复制到我的服务器;
@copy("http://www.example.com/image.jpg", $title.'.jpg');
但我想确保它已成功复制。如果没有成功复制,我想做点什么。我怎样才能做到这一点 ?谢谢。
if(!copy("http://www.example.com/image.jpg", $title.'.jpg')){ echo "failed to copy file...\n"; }
*成功时返回 TRUE,失败时返回 FALSE。* - 根据我想你没有读过的文档。