note 21824 added to function.header

From: Date: Tue, 28 May 2002 16:46:16 +0000
Subject: note 21824 added to function.header
Groups: php.notes 
Request: Send a blank email to php-notes+get-31102@lists.php.net to get a copy of this message
There has been a nasty bug in IE 5 and even 6.0 (applied SP2 still couldn't fix it) which makes IE hangs when user cancels file download for several times (MS Knowledge base Q266305) Here is my workaround: header("Content-type: application/octet-stream"); header("Content-Disposition: filename=$myfile" . "%20"); In this case, we avoid the bug by not using "attachment" in Content-Disposition. Now, IE thinks that the file has an unknown extension which forces it to pop up the download box. When you save file, %20 doesn't get saved. However, IE does add [number] in the file name which is acceptable in my case. E.g. filename.xls will become filename[1].xls This is even a workaround for Q281119: Internet Explorer Saves HTML Content Instead of the Active Document. (Especially we can't always assume users update their machine with lastest service packs) Simon Lee Webmaster@terago.ca TeraGo Networks Inc. -- http://www.php.net/manual/en/function.header.php http://master.php.net/manage/user-notes.php?action=edit+21824 http://master.php.net/manage/user-notes.php?action=delete+21824 http://master.php.net/manage/user-notes.php?action=reject+21824

« previous php.notes (#31102) next »