this code:
<?php
$myfile = 'C:\nonexistant.jpg';
if ($myfile) {
copy("$myfile" , 'C:\dn\blah2.jpg');
} else {
echo("Couldnt find it!");
}
?>
produces this error:
Warning: copy(C:\nonexistant.jpg): failed to open stream: No such file or directory in c:\dn\error.php on line 7
I wan't it to skip the copy if the file doesn't exist.