最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

PHP腳本中include文件出錯解決方法

 更新時間:2008年11月20日 14:01:59   作者:  
經(jīng)常當php頁面中利用include, require, require_once包含了一些其他位置的頁面時,會出現(xiàn)錯誤,比如沒有發(fā)現(xiàn)次頁面,或者權(quán)限不允許等,可以根據(jù)以下方法來排除
1. 出現(xiàn)“未找到文件“類似的錯誤時候,檢查include文件的位置是否正確,下面引用php手冊頁面的原話:
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. 當出現(xiàn)permission deny 類似錯誤的時候,按以下方法排除
a) 檢測被包含的文件讀權(quán)限是否打開
b) 檢測被包含的文件路徑上的每個目錄的x權(quán)限是否打開,該權(quán)限決定了目錄能否被瀏覽。

相關(guān)文章

最新評論

敦煌市| 黔东| 营口市| 宜春市| 柏乡县| 探索| 新津县| 吉安市| 龙井市| 漳平市| 阿克陶县| 天气| 兰西县| 全南县| 五莲县| 平远县| 甘德县| 斗六市| 花莲县| 景洪市| 定边县| 沧州市| 石家庄市| 隆化县| 资中县| 威信县| 普安县| 犍为县| 松原市| 石泉县| 松溪县| 泾阳县| 吉安市| 化德县| 南部县| 平远县| 尼玛县| 宁海县| 渭南市| 肃宁县| 垣曲县|