看板 PHP 關於我們 聯絡資訊
前情省略 最近使用 php + FPDF 終於產生了 PDF 檔 不過這是在 IE6 底下的測試(FF也可以) 同樣的PHP程式在 IE7 底下測試時 卻會出現以下資訊 http://img821.imageshack.us/img821/4825/123lpy.jpg
不知道有沒有人遇到這個問題過?? 我也上網查了資料 跟這個人一樣 http://www.lowest-price-web-hosting.com/big5/bbs/viewthread.php?tid=2422 (SESSION) 檔案 A ----------> 檔案B 不過我拿掉SESSION也沒有改變剛剛的狀態 不知道有沒有人可以幫幫忙捏?? 先說聲謝謝囉!! -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.116.134.139
alpe:有傳 header 嗎? 10/13 22:05
後來加上這段後就順利輸出 $filename = "test.pdf";//pdf檔名 //header header("Content-type:application/pdf"); header("Content-Disposition:attachment;filename=$filename"); header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0,pre-check=0"); header("Pragma: public"); $pdf->Output("test.pdf", 'D');//產生下載檔 謝謝提供建議! ※ 編輯: teaRsis 來自: 140.116.134.139 (10/16 23:26)