What I am trying to accomplish, is for a file to be downloaded of one of two places. If the file doesn't exist it needs to try to download it from another location. However if the first file does exist, it needs to stop and not try to download the second file, otherwise the second file will still be downloaded as a blank file, overwriting the first one. How would I do this using something such as a else value?
<?php
$source_file = 'http://somesitehere.tld/' . $_GET["u"] . '.png';
$dest_file = '/enter/directory/here/' . $_GET["u"] . '.png';
copy($source_file, $dest_file);
?>