php代碼出現(xiàn)錯(cuò)誤分析詳解
更新時(shí)間:2008年06月17日 19:10:54 作者:
由于最近總是接觸到php,經(jīng)常會(huì)出現(xiàn)一些錯(cuò)誤,特把php的常見的錯(cuò)誤代碼收集了下,希望對(duì)大家有幫助
十一、這是語言管理中的language表里面有些字段沒有引號(hào),有些新增模塊有這樣的問題
代碼:
Boka SiteEngine
數(shù)據(jù)庫錯(cuò)誤
錯(cuò)誤信息1064: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'home']'' at line 1
出現(xiàn)錯(cuò)誤的查詢信息是
UPDATE boka_language
十二、不存在此函數(shù)
代碼:
Fatal error: Call to undefined function: buildhtml() in /usr/boka/www.lzj.bsa.cn/admin/news.php on line 894
十三、服務(wù)器執(zhí)行時(shí)間超時(shí).修改php.ini里的設(shè)置
代碼:
Fatal error: Maximum execution time of 30 seconds exceeded in c:\program files\siteengine\siteenginephp\www\lib\tar.php on line 101 Fatal error: Maximum execution time of
30 seconds exceeded in c:\program files\siteengine\siteenginephp\www\lib\cookie.php on line 174
十四、調(diào)用了不存在的類
代碼:
Fatal error: Call to a member function on a non-object in e:\boka\d.com\admin\product.php on line 1291
十五、ZEND版本不匹配?
代碼:
Fatal error: Incompatible file format: The encoded file has format ID 2006022801, whereas the Optimizer can read up to 2002062301 in e:\website\d.com\install.php on line 0
十六、不能建立windows下的Mysql服務(wù)進(jìn)程
代碼:
cannot create windows service for mysql.error:0
十七、數(shù)據(jù)表錯(cuò)誤,修復(fù)數(shù)據(jù)表.(檢查數(shù)據(jù)庫的表。通過phpmyadmin即可修復(fù))
代碼:
Discuz! info: MySQL Query Error
User: 球球媽
Time: 2006-7-26 10:50am
Script: /forums/redirect.php
SQL: SELECT f.fid, t.tid, f.*, ff.* , f.fid AS fid
FROM cdb_forums f, cdb_threads t
LEFT JOIN cdb_forumfields ff ON ff.fid=f.fid
WHERE t.tid='109118' AND t.displayorder>='0' AND f.fid=t.fid LIMIT 1
Error: Can't open file: 'cdb_threads.MYI'. (errno: 145)
Errno.: 1016
Similar error report has beed dispatched to administrator before.
十七,環(huán)境zend未安裝
代碼:
Zend Optimizer not installed
十八,安裝是沒有任何反應(yīng),輸入install.php面空白。
環(huán)境錯(cuò)誤提示被屏蔽,察看文件是否用二進(jìn)制傳送或者是zend是否有安裝。
十九、數(shù)據(jù)庫出現(xiàn)
代碼: [拷貝到剪貼板]
too many connections
數(shù)據(jù)庫鏈接數(shù)太多,修改mysql的最大鏈接數(shù)。
二十、輸入安裝install.php提示
install.php 不允許執(zhí)行原因是:
腳本權(quán)限錯(cuò)誤:不能設(shè)置為同組可寫!
服務(wù)器端配置:
Server Administrator/Contact: [no address given]
Server Name: www.***.com
Server Port: 80
Server Protocol: HTTP/1.1
訪問請(qǐng)求數(shù)據(jù):
User Agent/Browser: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Maxthon)
Request Method: GET
Remote Address: 221.222.177.106
Remote Port: 30066
請(qǐng)檢查install.php的文件屬性是否為644。
二十一、訪問頁面提示:
代碼:
Warning: main(/data/home/zn00s1/htdocs/data/language/.php): failed to open stream: No such file or directory in /data/home/zn00s1/htdocs/admin/global.php on line 62
這個(gè)錯(cuò)誤是由于數(shù)據(jù)庫恢復(fù)不正常。請(qǐng)核實(shí)2個(gè)數(shù)據(jù)庫的版本是否一致。
二十二、在2003下執(zhí)行install.php文件,點(diǎn)擊"下一步"的按鈕點(diǎn)擊不下去.
請(qǐng)檢查2003下的IE的安全設(shè)置為中。
相關(guān)文章
dedecms系統(tǒng)的廣告設(shè)置代碼 基礎(chǔ)版本
dedecms系統(tǒng)的廣告設(shè)置代碼 基礎(chǔ)版本,需要的朋友可以參考下。2010-04-04
修改PHP腳本使WordPress攔截垃圾評(píng)論的方法示例
這篇文章主要介紹了修改PHP腳本使WordPress攔截垃圾評(píng)論的方法示例,主要是通過修改主題的functions.php來實(shí)現(xiàn)相關(guān)功能,需要的朋友可以參考下2015-12-12
jQuery+PHP發(fā)布的內(nèi)容進(jìn)行無刷新分頁(Fckeditor)
這篇文章主要介紹了jQuery結(jié)合,將Fckeditor發(fā)布的內(nèi)容進(jìn)行無刷新分頁,需要的朋友可以參考下2015-10-10
PHP session垃圾回收機(jī)制實(shí)例分析
這篇文章主要介紹了PHP session垃圾回收機(jī)制,簡單分析了session垃圾回收機(jī)制的原理、配置及相關(guān)使用技巧,需要的朋友可以參考下2019-06-06
PHP實(shí)現(xiàn)網(wǎng)絡(luò)請(qǐng)求的方法總結(jié)
對(duì)于php發(fā)送網(wǎng)絡(luò)請(qǐng)求,我們最常用的請(qǐng)求就是curl,有時(shí)我們也會(huì)用到file_get_contents函數(shù)發(fā)送網(wǎng)絡(luò)請(qǐng)求。本文為大家總結(jié)了php實(shí)現(xiàn)網(wǎng)絡(luò)請(qǐng)求的方法及函數(shù),感興趣的可以學(xué)習(xí)一下2022-06-06
php實(shí)現(xiàn)獲取文章內(nèi)容第一張圖片的方法
這篇文章主要介紹了php實(shí)現(xiàn)獲取文章內(nèi)容第一張圖片的方法,涉及對(duì)正則表達(dá)式的操作,非常具有實(shí)用價(jià)值,需要的朋友可以參考下2014-11-11

