one aplication in my job does it.. but i am at home now, and cannot look that php code from here..
i just get this from php.net/header
take a look at this function description and this comment from there:
(you do need all those header's)
Dr. Hasenbein
03-Nov-2003 10:30
I had problems getting IE 6 to open [or to 'save as'] a BLOB'ed Word-document even with all those nice examples below. This line saved my day: header("Cache-control: private");
<?
header("Expires: Mon, 26 Jul 2001 05:00:00 GMT"); // Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always modified
header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache"); // HTTP/1.0
header("Cache-control: private"); // <= it's magical!!
header("Content-type: ".$row['mime']); // 'application/msword' or 'application/octet-stream'
header("Content-Disposition: attachment; filename=".$row['orgname']);
echo $row['file'];
?>