On Dec 5, 2007 3:33 PM, Barry Von Ahsen <<a href="mailto:barry@vonahsen.com">barry@vonahsen.com</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
so I had to revisit this, and it seems a lot of people have this<br>problem, but haven't found a solution.<br><br>I want users to download a file that preferably lives outside of the<br>webroot. it works fine in FF and IE7, but IE6 won't pick up the file
<br>name I specify, it wants to name it my page name (download.php) - I<br>accept that IE6 SP2 will force a download, I just want the name to be<br>right. anybody fixed this?<br><br></blockquote></div><br>Here's my code:
<br><br>// now we need to download the file<br>//header("Content-Type: application/ms-x-download");<br>header("Content-Type: application/octet-stream");<br>header("Content-Length: $size");<br>
header("Content-Disposition: attachment; filename=\"$name\"");<br>header("Content-Transfer-Encoding: binary");<br><br>-- <br>Matthew Nuzum<br>newz2000 on freenode