Sto utilizzando PHP per creare un file CSV da una query di database. Eseguo la query, imposta le intestazioni e carica la pagina in Firefox e il file richiede il download e si apre in Excel esattamente come dovrebbe. Quando provo in IE, viene visualizzato un messaggio di errore che indica Internet Explorer cannot download ReportPrint.php from www.website.com.
Internet Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later.
Non so cosa si possa fare per risolvere questo problema.Creazione e download di CSV con PHP
header('Content-Description: File Transfer');
header("Content-Type: application/csv") ;
header("Content-Disposition: attachment; filename=Report.csv");
header("Pragma: no-cache");
header("Expires: 0");
echo "record1,record2,record3\n";
Commento a margine: l'intestazione 'Scadenza' si aspetta una * data * –