note 58213 added to function.header
| From: | brianatpjcservicesdotcom at osu1 dot php dot net | Date: | Thu, 27 Oct 2005 17:10:39 +0000 |
| Subject: | note 58213 added to function.header | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-97704@lists.php.net to get a copy of this message | ||
For Internet Explorer:
When using an attachement Content-Dispositon, it seems the following headers are also required:
header("Cache-Control: cache, must-revalidate");
header("Pragma: public");
If you have Cache-Control as no-cache, IE fails.
I have done several tests and those two lines fixed my script. (It was trying to download a .csv)
The above seems to be especially true on https connections.
----
Manual Page -- http://www.php.net/manual/en/function.header.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+58213
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+58213&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+58213&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+58213&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+58213&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+58213&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+58213&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+58213&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+58213&report=yes
Search -- http://master.php.net/manage/user-notes.php