国产精品天干天干,亚洲毛片在线,日韩gay小鲜肉啪啪18禁,女同Gay自慰喷水

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

動態(tài)網(wǎng)頁PHP腳本中include文件報錯解決方法

2023-08-16 10:00 作者:左音king  | 我要投稿

動態(tài)網(wǎng)頁PHP腳本中include文件報錯解決方法

經(jīng)常當(dāng)php頁面中利用include,require,require_once包含了一些其他地位的頁面時,

會呈現(xiàn)錯誤,比如沒有發(fā)明次頁面,或者權(quán)限不答應(yīng)等,可以根據(jù)以下方法來消除。


經(jīng)常當(dāng)php頁面中利用include, require, require_once

包含了一些其他地位的頁面時,會呈現(xiàn)錯誤,比如沒有發(fā)明次頁面,

或者權(quán)限不答應(yīng)等,可以根據(jù)以下方法來消除


1. 呈現(xiàn)“未找到文件“類似的錯誤時候,檢查include文件的地位是否準(zhǔn)確,

下面引用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. 當(dāng)呈現(xiàn)permission deny 類似錯誤的時候,按以下方法消除

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

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

本文來源:https://www.fushouyu.com/shouyou/135.html

動態(tài)網(wǎng)頁PHP腳本中include文件報錯解決方法的評論 (共 條)

分享到微博請遵守國家法律
淳化县| 栾城县| 商都县| 淳化县| 左云县| 五台县| 岳普湖县| 崇义县| 揭东县| 连山| 鄢陵县| 军事| 隆林| 秀山| 丘北县| 邵武市| 奈曼旗| 闽侯县| 永平县| 策勒县| 和平县| 阿城市| 九江县| 饶平县| 苏尼特左旗| 柏乡县| 延津县| 台前县| 宣化县| 涿鹿县| 营山县| 金溪县| 乌什县| 那曲县| 望江县| 新巴尔虎右旗| 遂宁市| 东海县| 特克斯县| 彭州市| 克东县|