aggiungo
thanxxCodice PHP:
header("Pragma: public");
header("Cache-control: private"); // fix for IE
header("Content-type: application/vnd.ms-excel");
header("Content-transfer-encoding: binary\n");
header("Content-Disposition: attachment; filename=".$nomeFile."\n");
$origfile = "file.php";
$handle = fopen($origfile , "rb");
$what = fread($handle, filesize($origfile));
fclose($handle);