note 35405 deleted from function.header by vincent
| From: | vincent@php.net | Date: | Sat, 30 Aug 2003 08:28:25 +0000 |
| Subject: | note 35405 deleted from function.header by vincent | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-55328@lists.php.net to get a copy of this message | ||
Note Submitter:
----
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