日韩天天综合网_野战两个奶头被亲到高潮_亚洲日韩欧美精品综合_av女人天堂污污污_视频一区**字幕无弹窗_国产亚洲欧美小视频_国内性爱精品在线免费视频_国产一级电影在线播放_日韩欧美内地福利_亚洲一二三不卡片区

解答網(wǎng)頁(yè)中PHP腳本中include文件報(bào)錯(cuò)的方法_PHP教程

編輯Tag賺U幣
教程Tag:暫無(wú)Tag,歡迎添加,賺取U幣!

推薦:解讀PHP錯(cuò)誤報(bào)告
從早期的版本到 2004 年7月13 日發(fā)布的 PHP 5,錯(cuò)誤報(bào)告都是相當(dāng)簡(jiǎn)單的。除了小心編寫程序,還要留意一些特定的 PHP 配置項(xiàng)目: error_reporting 這個(gè)項(xiàng)目設(shè)置了錯(cuò)誤報(bào)告的等級(jí)。不論是開發(fā)還是部署環(huán)境,強(qiáng)烈建議將這個(gè)項(xiàng)目設(shè)置為E_ALL。 display_errors 這

經(jīng)常當(dāng)php頁(yè)面中利用include, require, require_once包含了一些其他位置的頁(yè)面時(shí),會(huì)出現(xiàn)錯(cuò)誤,比如沒(méi)有發(fā)現(xiàn)次頁(yè)面,或者權(quán)限不允許等,可以根據(jù)以下方法來(lái)排除

1. 出現(xiàn)“未找到文件“類似的錯(cuò)誤時(shí)候,檢查include文件的位置是否正確,下面引用php手冊(cè)頁(yè)面的原話:

Files for including are first looked in include_path relative to the current working directory and then in the directory of the current script. E.g. if your include_path is libraries, current working directory is /www/, you included include/a.php and there is include "b.php" in that file, b.php is first looked in /www/libraries/ and then in /www/include/. If filename begins with ./ or ../, it is looked only in include_path relative to the current working directory.

2. 當(dāng)出現(xiàn)permission deny 類似錯(cuò)誤的時(shí)候,按以下方法排除

a) 檢測(cè)被包含的文件讀權(quán)限是否打開

b) 檢測(cè)被包含的文件路徑上的每個(gè)目錄的x權(quán)限是否打開,該權(quán)限決定了目錄能否被瀏覽。
 

分享:解析xml php動(dòng)態(tài)載入與分頁(yè)
這是在看太平洋網(wǎng)的評(píng)論時(shí)看到的,太平洋網(wǎng)是用jsp做為后臺(tái)語(yǔ)言,用來(lái)產(chǎn)生xml文件.然后在把數(shù)據(jù)綁定到html上的.我就用php也做了一個(gè)以下是源文件. -----------------xml.htm------------------

來(lái)源:模板無(wú)憂//所屬分類:PHP教程/更新時(shí)間:2009-08-15
相關(guān)PHP教程