php代碼出現(xiàn)錯(cuò)誤分析詳解第2/2頁(yè)
更新時(shí)間:2008年06月17日 19:10:54 作者:
由于最近總是接觸到php,經(jīng)常會(huì)出現(xiàn)一些錯(cuò)誤,特把php的常見(jiàn)的錯(cuò)誤代碼收集了下,希望對(duì)大家有幫助
十一、這是語(yǔ)言管理中的language表里面有些字段沒(méi)有引號(hào),有些新增模塊有這樣的問(wèn)題
代碼:
Boka SiteEngine
數(shù)據(jù)庫(kù)錯(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)用了不存在的類(lèi)
代碼:
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ù)庫(kù)的表。通過(guò)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
十八,安裝是沒(méi)有任何反應(yīng),輸入install.php面空白。
環(huán)境錯(cuò)誤提示被屏蔽,察看文件是否用二進(jìn)制傳送或者是zend是否有安裝。
十九、數(shù)據(jù)庫(kù)出現(xiàn)
代碼: [拷貝到剪貼板]
too many connections
數(shù)據(jù)庫(kù)鏈接數(shù)太多,修改mysql的最大鏈接數(shù)。
二十、輸入安裝install.php提示
install.php 不允許執(zhí)行原因是:
腳本權(quán)限錯(cuò)誤:不能設(shè)置為同組可寫(xiě)!
服務(wù)器端配置:
Server Administrator/Contact: [no address given]
Server Name: www.***.com
Server Port: 80
Server Protocol: HTTP/1.1
訪問(wèn)請(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。
二十一、訪問(wèn)頁(yè)面提示:
代碼:
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ù)庫(kù)恢復(fù)不正常。請(qǐng)核實(shí)2個(gè)數(shù)據(jù)庫(kù)的版本是否一致。
二十二、在2003下執(zhí)行install.php文件,點(diǎn)擊"下一步"的按鈕點(diǎn)擊不下去.
請(qǐng)檢查2003下的IE的安全設(shè)置為中。
相關(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基于采集類(lèi)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í)分類(lèi)的結(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