[請益] 簡單小問題發問

看板PHP作者 (ianyu)時間13年前 (2011/04/18 12:11), 編輯推噓0(008)
留言8則, 3人參與, 最新討論串1/1
我覺得這應該是個蠢問題 只是就是一直想不出來 <frameset rows="80%,*" frameborder="no"> <?php $pagenext= 1; ?> <frame name="top" src="http://localhost/sqlanddb<?php echo $pagenext;?>.pdf"> <frame name="bottom" src="next2.php"> </frameset> 這是用頁框,讓上頭顯示出我要的pfd檔案 但是我現在需要一個php檔案,裡面就直接顯示我的pdf檔案 頁框是一定要切成兩個,應該不能只有一個吧??那就不需要頁框啦 但是我怎樣就想不出來讓php直接秀出pdf 不是超連結,也不是圖片連結啊 所以直接顯示的語法是?? 頭腦真的打結了!!! -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 114.46.164.101

04/18 13:26, , 1F
header('Location: '.$url); exit;
04/18 13:26, 1F

04/18 13:27, , 2F
至於要顯示還是下載是browser自己決定
04/18 13:27, 2F

04/18 13:28, , 3F
公開文件的話可以用http://docs.google.com/viewer?url=
04/18 13:28, 3F

04/18 15:43, , 4F
謝謝b大
04/18 15:43, 4F

04/18 16:21, , 5F
header('Location: '.$url);裡頭的url無法用變數取代
04/18 16:21, 5F

04/18 16:22, , 6F
嗎??<?php echo $pagenext;?>這樣子~~
04/18 16:22, 6F

04/18 16:52, , 7F
$url 已經是變數啦.. 整個 header 都是php的程式阿..
04/18 16:52, 7F

04/19 15:20, , 8F
嗯嗯,之後有試出來了,謝謝
04/19 15:20, 8F
文章代碼(AID): #1Dgxdn8y (PHP)