Buongiorno a tutti,
come da titolo mi trovo a postare in quanto ho problemi nel download di file con IE.
Ho provato con firefox e funziona tutto alla perfezione ma con IE mi da il seguente errore.
"IE was not able to open this site.The requested site is either unavaible or cannot be found".
Posto di seguito il codice utilizzato:
<?
ob_start();
session_start();
$path = "../docs";
$dimensione = filesize($path."/".$_GET['f']);
if (eregi("mac",$_SERVER['HTTP_USER_AGENT']))
$type = "application/download";
else
$type = "application/octet-stream";
header("Content-Type: {$type}");
header("Content-Disposition: attachment; filename={$_GET[f]}");
header("Content-Length: {$dimensione}");
header("Content-Transfer-Encoding: binary");
readfile($path."/".$_GET['f']);
?>
ringrazio anticipatamente...