Hi
I've got what seems to be the fairly standard problem of forcing the browser to download (save file-dialog) files of the types .txt, .doc, .xls, etc.
I've been browsing the forums for an answer but the ones provided didn't work for me. This is what I use:
<?PHP
if ($startdownload == "yes") {
header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename=$dfilename");
header("Content-Transfer-Encoding: binary");
header("Location: http://kihlbom.com/afk/download/$dfilename");
exit;
}
?>
I've also tried using header("Content-type: application/x-ms-download"); as suggested by someone in this forum.
I really need this to work, so if you guys could help me I'd be grateful.
BTW, I'm using IE 5.0/MacOS 8.6 for testing, but I've also tested with IE 5.0/Win98.
Thanks,
CJ Kihlbom