note 33192 added to function.header
| From: | datune at rack1 dot php dot net | Date: | Wed, 18 Jun 2003 15:36:45 +0000 |
| Subject: | note 33192 added to function.header | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-50590@lists.php.net to get a copy of this message | ||
It took me hours to find out why the following headers would not work in IE 6 but would work in
browsers like Mozilla etc..
header("Cache-control: private");
header("Content-type: application/zip");
header("Content-disposition:attachment; filename=$filename");
The solution was to add another header
header("Pragma: public");
before all others, than it worked.
Oh, i don't know if it matters, but i was using sessions and the site was running on SSL as
well.
Hope this helps someone.
----
Manual Page -- http://www.php.net/manual/en/function.header.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33192
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33192&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33192&report=yes