note 58821 added to function.header
| From: | ron at emunications dot com | Date: | Thu, 17 Nov 2005 06:09:42 +0000 |
| Subject: | note 58821 added to function.header | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-98682@lists.php.net to get a copy of this message | ||
I was trying to download a PDF and, under IE 6, if you chose to DL to a temp file and then open it
on-the-fly (as opposed to saving to a permanent file) Adobe Reader could not find it. I think it
never really got saved to temp. It worked great under Safari.
Thanks to "brian at pjcservices dot com", I tried adding the two extra headers and it
started working. They are:
header("Cache-Control: cache, must-revalidate");
header("Pragma: public");
See his full explanation from Oct. 27. I just wanted to record my specific problem with PDFs in case
anyone experiences the same.
Thanks again, Brian!
----
Manual Page -- http://www.php.net/manual/en/function.header.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+58821
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+58821&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+58821&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+58821&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+58821&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+58821&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+58821&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+58821&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+58821&report=yes
Search -- http://master.php.net/manage/user-notes.php