php代碼出現(xiàn)錯誤分析詳解第1/2頁
更新時間:2008年06月17日 19:10:54 作者:
由于最近總是接觸到php,經(jīng)常會出現(xiàn)一些錯誤,特把php的常見的錯誤代碼收集了下,希望對大家有幫助
錯誤類型:
一、未使用二進制上傳
代碼:
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ù)庫錯誤
錯誤信息1054: Unknown column 'tuijian' in 'where clause'
出現(xiàn)錯誤的查詢信息是
SELECT * FROM boka_product WHERE tuijian=1 AND classid IN ('1','0')ORDER BY id DESC LIMIT 4
三、服務器限制了網(wǎng)站使用內(nèi)存的大小為8M,現(xiàn)在已經(jīng)超過
代碼:
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 5898240 bytes)
四、這個是模板錯誤,header.php的529行所指出的模板,該模板的79行出錯
[code]in /webhome/***.com/web/www/header.php(529) : eval()'d code on line 79
五、數(shù)據(jù)庫表不存在
代碼:
An error was encountered
Boka SiteEngine
1146: Table 'test.boka_settings' doesn't exist
SELECT value FROM boka_settings WHERE variable='defaultstyleid'
六、 未安裝或者數(shù)據(jù)庫的用戶名密碼錯誤
代碼:
An error was encountered
Boka SiteEngine
1045: Access denied for user: 'root@localhost' (Using password: YES)
七、查詢語句有錯誤
代碼:
Boka SiteEngine
數(shù)據(jù)庫錯誤
錯誤信息1064: You have an error in your SQL syntax near 'ORDER BY sequence ASC,id ASC' at line 1
出現(xiàn)錯誤的查詢信息是
UPDATE gzhy_newsclass SET ishidden ='1' WHERE id = '38' ORDER BY sequence ASC,id ASC
八、文件過期
代碼:
There is a fatal error,the file has expired
九、數(shù)據(jù)庫出錯,需要修復數(shù)據(jù)庫或者重新啟動數(shù)據(jù)庫?
代碼:
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
一、未使用二進制上傳
代碼:
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ù)庫錯誤
錯誤信息1054: Unknown column 'tuijian' in 'where clause'
出現(xiàn)錯誤的查詢信息是
SELECT * FROM boka_product WHERE tuijian=1 AND classid IN ('1','0')ORDER BY id DESC LIMIT 4
三、服務器限制了網(wǎng)站使用內(nèi)存的大小為8M,現(xiàn)在已經(jīng)超過
代碼:
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 5898240 bytes)
四、這個是模板錯誤,header.php的529行所指出的模板,該模板的79行出錯
[code]in /webhome/***.com/web/www/header.php(529) : eval()'d code on line 79
五、數(shù)據(jù)庫表不存在
代碼:
An error was encountered
Boka SiteEngine
1146: Table 'test.boka_settings' doesn't exist
SELECT value FROM boka_settings WHERE variable='defaultstyleid'
六、 未安裝或者數(shù)據(jù)庫的用戶名密碼錯誤
代碼:
An error was encountered
Boka SiteEngine
1045: Access denied for user: 'root@localhost' (Using password: YES)
七、查詢語句有錯誤
代碼:
Boka SiteEngine
數(shù)據(jù)庫錯誤
錯誤信息1064: You have an error in your SQL syntax near 'ORDER BY sequence ASC,id ASC' at line 1
出現(xiàn)錯誤的查詢信息是
UPDATE gzhy_newsclass SET ishidden ='1' WHERE id = '38' ORDER BY sequence ASC,id ASC
八、文件過期
代碼:
There is a fatal error,the file has expired
九、數(shù)據(jù)庫出錯,需要修復數(shù)據(jù)庫或者重新啟動數(shù)據(jù)庫?
代碼:
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)文章
dedecms系統(tǒng)的廣告設(shè)置代碼 基礎(chǔ)版本
dedecms系統(tǒng)的廣告設(shè)置代碼 基礎(chǔ)版本,需要的朋友可以參考下。2010-04-04
jQuery+PHP發(fā)布的內(nèi)容進行無刷新分頁(Fckeditor)
這篇文章主要介紹了jQuery結(jié)合,將Fckeditor發(fā)布的內(nèi)容進行無刷新分頁,需要的朋友可以參考下2015-10-10
PHP實現(xiàn)網(wǎng)絡請求的方法總結(jié)
對于php發(fā)送網(wǎng)絡請求,我們最常用的請求就是curl,有時我們也會用到file_get_contents函數(shù)發(fā)送網(wǎng)絡請求。本文為大家總結(jié)了php實現(xiàn)網(wǎng)絡請求的方法及函數(shù),感興趣的可以學習一下2022-06-06
php實現(xiàn)獲取文章內(nèi)容第一張圖片的方法
這篇文章主要介紹了php實現(xiàn)獲取文章內(nèi)容第一張圖片的方法,涉及對正則表達式的操作,非常具有實用價值,需要的朋友可以參考下2014-11-11

