|
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)限是否打開(kāi)
b) 檢測(cè)被包含的文件路徑上的每個(gè)目錄的x權(quán)限是否打開(kāi),該權(quán)限決定了目錄能否被瀏覽。
php技術(shù):PHP腳本中include文件出錯(cuò)解決方法,轉(zhuǎn)載需保留來(lái)源!
鄭重聲明:本文版權(quán)歸原作者所有,轉(zhuǎn)載文章僅為傳播更多信息之目的,如作者信息標(biāo)記有誤,請(qǐng)第一時(shí)間聯(lián)系我們修改或刪除,多謝。