note 26945 added to function.header
| From: | mark dot pearson at capita dot co dot uk | Date: | Mon, 18 Nov 2002 17:48:07 +0000 |
| Subject: | note 26945 added to function.header | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-39651@lists.php.net to get a copy of this message | ||
If you are attempting to force file downloads using the
following headers
Content-Type: application/........
Content-Disposition: attachment; filename=file.ext
and find that with Internet Explorer 6 the browser asks you
twice whether you want to Open or Save the file, once with
the name of the web page (e.g. test.php) and then again
with the name given in the Content-Disposition header
(i.e. file.ext) then try the IE6 security fix at:
http://www.microsoft.com/technet/treeview/default.asp?
url=/technet/security/bulletin/MS02-005.asp
For the record I experienced this problem running
IE6 on Windows 2000 Server with IIS5 and PHP4.1.2.
File downloads worked perfectly with IE5.5 but as soon
as I upgraded to IE6 I started getting the annoying double
file download dialog. The fix mentioned above fixed the
problem for me.
I mention this problem and its solution here in the hope
it may be of use to other PHP developers working with
file downloads.
--
http://www.php.net/manual/en/function.header.php
http://master.php.net/manage/user-notes.php?action=edit+26945
http://master.php.net/manage/user-notes.php?action=delete+26945
http://master.php.net/manage/user-notes.php?action=reject+26945