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

解決php腳本中include文件報(bào)錯(cuò)的方法_PHP教程

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

推薦:PHP實(shí)例 PHP實(shí)現(xiàn)定時(shí)生成HTML網(wǎng)站首頁(yè)
在開(kāi)始之前還是提一下三個(gè)函數(shù)吧:ob_start()、ob_end_clean()、ob_get_contents() ob_start():是打開(kāi)緩沖區(qū)的,就是要把您需要生成的靜態(tài)文件的內(nèi)容緩存在這里; ob_get_c

經(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)“未找到文件“類(lèi)似的錯(cuò)誤時(shí)候,檢查include文件的位置是否正確,下面引用php手冊(cè)頁(yè)面的原話(huà):

以下為引用的內(nèi)容:

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 類(lèi)似錯(cuò)誤的時(shí)候,按以下方法排除

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

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

分享:如何用PHP程序?qū)W(wǎng)頁(yè)表單進(jìn)行處理
PHP _GET 和 _POST變量是用來(lái)獲取表單中的信息的,比如用戶(hù)輸入的信息。 PHP表單操作 在我們處理HTML表單和PHP表單時(shí),我們要記住的重要一點(diǎn)是:HTML頁(yè)面中的任何一個(gè)表單元素都可以自

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