"; if (file_exists($ff1)) { header('Content-Description: File Transfer'); header('Content-Type: application/octet-stream'); header('Content-Disposition: attachment; filename=' . basename($ff1)); // $filename header('Content-Transfer-Encoding: binary'); header('Expires: 0'); header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); header('Pragma: public'); header('Content-Length: ' . filesize($ff1)); ob_clean(); flush(); readfile($ff1); exit; } else { ScriviErrore($filename, "DoFB - Il file F non esiste sul sito"); } ?>