Forum Moderators: coopster
header("Pragma: public");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: private",false);
header("Content-Type: application/octet-stream");
header("Content-Disposition: attachment; filename=\"".basename($filename)."\";");
header("Content-Transfer-Encoding: binary");
header("Content-Length: ".@filesize($filename));
set_time_limit(0);
@readfile("$filename") or die("File not found.");
$filename is set for example to /name-2.0.cgm
In Firefox the "Save As" dialog correctly suggests this name. But IE6 suggests the following name: name-2[1].0.cgm
Anyone knows how I can prevent IE from adding the [1]?
[webmasterworld.com...]
[msdn.microsoft.com...]
[microsoft.com...]