php代碼出現(xiàn)錯(cuò)誤分析詳解第1/2頁(yè)
更新時(shí)間:2008年06月17日 19:10:54 作者:
由于最近總是接觸到php,經(jīng)常會(huì)出現(xiàn)一些錯(cuò)誤,特把php的常見(jiàn)的錯(cuò)誤代碼收集了下,希望對(duì)大家有幫助
錯(cuò)誤類型:
一、未使用二進(jìn)制上傳
代碼:
Fatal error: This encoded file is corrupted. Please refer to http://www.zend.com/support/support_faq.php?id=loader_file_corrupt for further help in
/webhome/****.com/web/www/index.php on line 0
二、數(shù)據(jù)表中缺少字段
代碼:
An error was encountered
Boka SiteEngine
數(shù)據(jù)庫(kù)錯(cuò)誤
錯(cuò)誤信息1054: Unknown column 'tuijian' in 'where clause'
出現(xiàn)錯(cuò)誤的查詢信息是
SELECT * FROM boka_product WHERE tuijian=1 AND classid IN ('1','0')ORDER BY id DESC LIMIT 4
三、服務(wù)器限制了網(wǎng)站使用內(nèi)存的大小為8M,現(xiàn)在已經(jīng)超過(guò)
代碼:
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 5898240 bytes)
四、這個(gè)是模板錯(cuò)誤,header.php的529行所指出的模板,該模板的79行出錯(cuò)
[code]in /webhome/***.com/web/www/header.php(529) : eval()'d code on line 79
五、數(shù)據(jù)庫(kù)表不存在
代碼:
An error was encountered
Boka SiteEngine
1146: Table 'test.boka_settings' doesn't exist
SELECT value FROM boka_settings WHERE variable='defaultstyleid'
六、 未安裝或者數(shù)據(jù)庫(kù)的用戶名密碼錯(cuò)誤
代碼:
An error was encountered
Boka SiteEngine
1045: Access denied for user: 'root@localhost' (Using password: YES)
七、查詢語(yǔ)句有錯(cuò)誤
代碼:
Boka SiteEngine
數(shù)據(jù)庫(kù)錯(cuò)誤
錯(cuò)誤信息1064: You have an error in your SQL syntax near 'ORDER BY sequence ASC,id ASC' at line 1
出現(xiàn)錯(cuò)誤的查詢信息是
UPDATE gzhy_newsclass SET ishidden ='1' WHERE id = '38' ORDER BY sequence ASC,id ASC
八、文件過(guò)期
代碼:
There is a fatal error,the file has expired
九、數(shù)據(jù)庫(kù)出錯(cuò),需要修復(fù)數(shù)據(jù)庫(kù)或者重新啟動(dòng)數(shù)據(jù)庫(kù)?
代碼:
An error was encountered
Boka SiteEngine
2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
十、
代碼:
Warning: Unexpected character in input: '' (ASCII=4) state=1 in c:\program files\siteengine\siteenginephp\www\index.php on line 97
Warning: Unexpected character in input: '' (ASCII=5) state=1 in c:\program files\siteengine\siteenginephp\www\index.php on line 97
Parse error: parse error, unexpected T_STRING in c:\program files\siteengine\siteenginephp\www\index.php on line 97
一、未使用二進(jìn)制上傳
代碼:
Fatal error: This encoded file is corrupted. Please refer to http://www.zend.com/support/support_faq.php?id=loader_file_corrupt for further help in
/webhome/****.com/web/www/index.php on line 0
二、數(shù)據(jù)表中缺少字段
代碼:
An error was encountered
Boka SiteEngine
數(shù)據(jù)庫(kù)錯(cuò)誤
錯(cuò)誤信息1054: Unknown column 'tuijian' in 'where clause'
出現(xiàn)錯(cuò)誤的查詢信息是
SELECT * FROM boka_product WHERE tuijian=1 AND classid IN ('1','0')ORDER BY id DESC LIMIT 4
三、服務(wù)器限制了網(wǎng)站使用內(nèi)存的大小為8M,現(xiàn)在已經(jīng)超過(guò)
代碼:
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 5898240 bytes)
四、這個(gè)是模板錯(cuò)誤,header.php的529行所指出的模板,該模板的79行出錯(cuò)
[code]in /webhome/***.com/web/www/header.php(529) : eval()'d code on line 79
五、數(shù)據(jù)庫(kù)表不存在
代碼:
An error was encountered
Boka SiteEngine
1146: Table 'test.boka_settings' doesn't exist
SELECT value FROM boka_settings WHERE variable='defaultstyleid'
六、 未安裝或者數(shù)據(jù)庫(kù)的用戶名密碼錯(cuò)誤
代碼:
An error was encountered
Boka SiteEngine
1045: Access denied for user: 'root@localhost' (Using password: YES)
七、查詢語(yǔ)句有錯(cuò)誤
代碼:
Boka SiteEngine
數(shù)據(jù)庫(kù)錯(cuò)誤
錯(cuò)誤信息1064: You have an error in your SQL syntax near 'ORDER BY sequence ASC,id ASC' at line 1
出現(xiàn)錯(cuò)誤的查詢信息是
UPDATE gzhy_newsclass SET ishidden ='1' WHERE id = '38' ORDER BY sequence ASC,id ASC
八、文件過(guò)期
代碼:
There is a fatal error,the file has expired
九、數(shù)據(jù)庫(kù)出錯(cuò),需要修復(fù)數(shù)據(jù)庫(kù)或者重新啟動(dòng)數(shù)據(jù)庫(kù)?
代碼:
An error was encountered
Boka SiteEngine
2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
十、
代碼:
Warning: Unexpected character in input: '' (ASCII=4) state=1 in c:\program files\siteengine\siteenginephp\www\index.php on line 97
Warning: Unexpected character in input: '' (ASCII=5) state=1 in c:\program files\siteengine\siteenginephp\www\index.php on line 97
Parse error: parse error, unexpected T_STRING in c:\program files\siteengine\siteenginephp\www\index.php on line 97
相關(guān)文章
PHP數(shù)組常用函數(shù)實(shí)例小結(jié)
這篇文章主要介紹了PHP數(shù)組常用函數(shù),結(jié)合實(shí)例形式總結(jié)分析了php針對(duì)數(shù)組的統(tǒng)計(jì)、計(jì)算、去重、過(guò)濾等相關(guān)函數(shù)使用技巧,需要的朋友可以參考下2018-08-08php獲取ajax的headers方法與內(nèi)容實(shí)例
下面小編就為大家分享一篇php獲取ajax的headers方法與內(nèi)容實(shí)例,具有很好的參考價(jià)值,希望對(duì)大家有所幫助。一起跟隨小編過(guò)來(lái)看看吧2017-12-12php ignore_user_abort與register_shutdown_function 使用方法
php ignore_user_abort與register_shutdown_function 使用方法小結(jié)。2009-06-06PHP實(shí)現(xiàn)抓取迅雷VIP賬號(hào)的方法
這篇文章主要介紹了PHP實(shí)現(xiàn)抓取迅雷VIP賬號(hào)的方法,實(shí)例分析了php基于采集類Snoopy實(shí)現(xiàn)頁(yè)面抓取及正則匹配的相關(guān)技巧,具有一定參考借鑒價(jià)值,需要的朋友可以參考下2015-07-07php無(wú)限級(jí)評(píng)論嵌套實(shí)現(xiàn)代碼
本文講的是php無(wú)限級(jí)評(píng)論嵌套實(shí)例介紹, 我在設(shè)計(jì)BB的過(guò)程中,也一直在思考是否可以不通過(guò)遞歸來(lái)實(shí)現(xiàn)無(wú)限級(jí)分類的結(jié)構(gòu)展現(xiàn)和父子結(jié)構(gòu)查找,因?yàn)槿绻粚?duì)這里的算法進(jìn)行優(yōu)化后果可能是致命的2018-04-04

PHP讀取XML文件的方法實(shí)例總結(jié)【DOMDocument及simplexml方法】
這篇文章主要介紹了PHP讀取XML文件的方法,結(jié)合實(shí)例形式總結(jié)分析了php基于DOMDocument及simplexml方法針對(duì)xml文件的載入、讀取等相關(guān)操作技巧,需要的朋友可以參考下
2019-09-09