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

解決php腳本中include文件報錯的方法_PHP教程

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

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

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

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

以下為引用的內(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 類似錯誤的時候,按以下方法排除

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

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

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

來源:模板無憂//所屬分類:PHP教程/更新時間:2009-09-11
相關(guān)PHP教程