How to determine if copy() is successful?
I can copy remote image to my server with;

    @copy("http://www.example.com/image.jpg", $title.'.jpg');

But I want to make sure it has been copied successfully. I want to do something if it has not been copied succesfully. How can I do that ? Thanks.
How to determine if copy() is successful?
===

I can copy remote image to my server with;

    @copy("http://www.example.com/image.jpg", $title.'.jpg');

But I want to make sure it has been copied successfully. I want to do something if it has not been copied succesfully. How can I do that ? Thanks.