php代碼出現(xiàn)錯誤分析詳解
更新時間:2008年06月17日 19:10:54 作者:
由于最近總是接觸到php,經(jīng)常會出現(xiàn)一些錯誤,特把php的常見的錯誤代碼收集了下,希望對大家有幫助
十一、這是語言管理中的language表里面有些字段沒有引號,有些新增模塊有這樣的問題
代碼:
Boka SiteEngine
數(shù)據(jù)庫錯誤
錯誤信息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)錯誤的查詢信息是
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í)行時間超時.修改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ù)進程
代碼:
cannot create windows service for mysql.error:0
十七、數(shù)據(jù)表錯誤,修復(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)境錯誤提示被屏蔽,察看文件是否用二進制傳送或者是zend是否有安裝。
十九、數(shù)據(jù)庫出現(xiàn)
代碼: [拷貝到剪貼板]
too many connections
數(shù)據(jù)庫鏈接數(shù)太多,修改mysql的最大鏈接數(shù)。
二十、輸入安裝install.php提示
install.php 不允許執(zhí)行原因是:
腳本權(quán)限錯誤:不能設(shè)置為同組可寫!
服務(wù)器端配置:
Server Administrator/Contact: [no address given]
Server Name: www.***.com
Server Port: 80
Server Protocol: HTTP/1.1
訪問請求數(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
請檢查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
這個錯誤是由于數(shù)據(jù)庫恢復(fù)不正常。請核實2個數(shù)據(jù)庫的版本是否一致。
二十二、在2003下執(zhí)行install.php文件,點擊"下一步"的按鈕點擊不下去.
請檢查2003下的IE的安全設(shè)置為中。
相關(guān)文章
php ignore_user_abort與register_shutdown_function 使用方法
php ignore_user_abort與register_shutdown_function 使用方法小結(jié)。2009-06-06

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