I tried this code.
$url = http://www.test.com/conf/test.jpg;
$dst = "./dst/file/data/thumb/";
if(!@copy($img_path,$dest_file))
{
$errors= error_get_last();
echo "COPY ERROR: ".$errors['type'];
echo "<br />\n".$errors['message']."<br />\n";
} else {
echo "File copied from remote!";
}
And I have this error message.
COPY ERROR: 2
copy(./dst/file/data/thumb/) [function.copy]: failed to open stream:
What is this error?