note 35405 added to function.header
| From: | php-general at lists dot php dot net | Date: | Sat, 30 Aug 2003 05:08:51 +0000 |
| Subject: | note 35405 added to function.header | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-55325@lists.php.net to get a copy of this message | ||
i have some problem when open pdf file,
header("Content-Type: Application/pdf");
header("Cache-Control: no-cache");
header("Content-Disposition: attachment;filename=temp.pdf");
print $pfd_contend;
when i used this header, it will prompt you save or open, i click save it is no problem, while click
open ,it can not open the file, it say the file does not exist, when i comment
header("Content-Disposition: attachment;filename=temp.pdf");
it can open the pdf file directly. how to solve that i want have prompt to save or open, and open
the file work. Thanks
----
Manual Page -- http://www.php.net/manual/en/function.header.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+35405
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+35405&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+35405&report=yes