Untitled
public text v1 · immutable if ( !file_exists($filename) ) {
$destination=fopen($filename,"w");
$source=fopen($url,"r");
fread($source);
fwrite($destination);
fclose($source);
fclose($destination);
echo "File $filename downloaded. <br>";
} else {
echo "File ALREADY EXISTS. <br>";
}