note 26945 deleted from function.header by sniper

From: Date: Sun, 07 Sep 2003 21:35:56 +0000
Subject: note 26945 deleted from function.header by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-55626@lists.php.net to get a copy of this message
Note Submitter: mark.pearson@capita.co.uk ---- 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.

« previous php.notes (#55626) next »