I have a trouble with Internet Explorer, when i try to download a file (with php) it sends a errror of cannot open the file,
the code is next :
<?
$title = "File download";
require "../common.html";
require "../include/funcionesBajio.html";
?>
<?
page_open(array("sess"=>"Session_Download"));
$qki = "HBid=cmz6znpZiX5ln20452145";
$priv = "111111111111100000000000000011";
$usr = "agro ";
$File = "TXT";
$particularFields = "&Month=".urlencode($Month)."&FrAccount=".urlencode($FrAccount)."&Year=".urlencode($Year)."&File=".urlencode($File);
PostToHost($backend, "/IBnkIIS.dll", "Trxn=stm&Access=".urlencode($Access)."&CustID=".urlencode($usr)."&Cadpriv=".urlencode($priv).$particularFields, $qki, $usr, $qki, $priv);
switch($File) {
case "TXT":
Header("Accept-Ranges: bytes");
Header("Keep-Alive: timeout=15, max=100");
Header("Content-type: text/plain");
break;
case "QIF":
Header("Content-type: text/qif");
break;
case "OFC":
Header("Content-type: text/ofc");
break;
}
printbuffer();
//printf("Hola;YYYY;IIIIIIII\n");
page_close();
?>
Can somebody help me?????