aggiungo

Codice 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($handlefilesize($origfile));
    
fclose($handle); 
thanxx