Per far fare il download delle immagini invece di aprirle nel browser questo funziona:
Codice PHP:
<?PHP
$fname = "$_GET[nome_file]";
$fpath = "http://www.?????????.it/$_GET[nome_file]";
header("Content-Type: application/octet-stream");
header("Content-Type: application/force-download");
header("Content-Type: application/download");
header("Content-Disposition: attachment; filename=$fname");
header("Content-Transfer-Encoding: binary");
readfile($fpath);
?>