Hi
For downloading an xml file I use this because of a bug in IE
if (strstr($HTTP_USER_AGENT, "MSIE")) {
$attachment = "";
$mimeType = "application/ms-x-download";
}
else {
$attachment = " attachment;";
$mimeType = "application/octet-stream";
}
header("Content-type: $mimeType");
header("Content-Disposition: $attachment filename=file.xml");
header("Content-Transfer-Encoding: binary");
It works in Netscape and IE if I change the extension file.xml to file.ext for example. If I keep the extension ".xml", IE wants to display the xml file but I just want download it not display it? How I can't make for prevent IE to download the xml file?
Thanks !!