Hi,
I have an export script that does a binary write to open a file "open/save as" dialog (to export data as an xml file). It works fine in IE, but in Netscape, the filename in the popup displays as 'somefile.xml.php' (whereas in IE it just shows 'somefile.xml').
Here's the relevant code relating to the popup.
if (strstr($_SERVER["HTTP_USER_AGENT"],"MSIE 5.5")) {
$att = "";
} else {
$att = " attachment;";
}
header("Content-Type: application/download; name=\"$FileName\"");
header("Content-Disposition:".$att." filename=\"$FileName\"");
header('Content-Transfer-Encoding: binary');
echo $xml;
Does anyone know a solution so the filename won't display as .xml.php in netscape?