php代码出现错误分析详解第1/2页

yipeiwu_com5年前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 



二、数据表中缺少字段

  代码:   
An error was encountered 
Boka SiteEngine
数据库错误
错误信息1054: Unknown column 'tuijian' in 'where clause'

出现错误的查询信息是
SELECT * FROM boka_product WHERE tuijian=1 AND classid IN ('1','0')ORDER BY id DESC LIMIT 4 



三、服务器限制了网站使用内存的大小为8M,现在已经超过

  代码:   
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 



五、数据库表不存在

  代码:   
An error was encountered 
Boka SiteEngine

1146: Table 'test.boka_settings' doesn't exist


SELECT value FROM boka_settings WHERE variable='defaultstyleid' 



六、 未安装或者数据库的用户名密码错误

  代码:   
An error was encountered 
Boka SiteEngine

1045: Access denied for user: 'root@localhost' (Using password: YES)    



七、查询语句有错误

  代码:   
Boka SiteEngine
数据库错误
错误信息1064: You have an error in your SQL syntax near 'ORDER BY sequence ASC,id ASC' at line 1

出现错误的查询信息是
UPDATE gzhy_newsclass SET ishidden ='1' WHERE id = '38' ORDER BY sequence ASC,id ASC 



八、文件过期

  代码:   
There is a fatal error,the file has expired 



九、数据库出错,需要修复数据库或者重新启动数据库?

  代码:   
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  

相关文章

浅谈php://filter的妙用

浅谈php://filter的妙用

php://filter是PHP中独有的协议,利用这个协议可以创造很多“妙用”,本文说几个有意思的点,剩下的大家自己下去体会。本来本文的思路我上半年就准备拿来做XDCTF2016的题目的...

分析PHP中单双引号的误区和双引号小隐患

分析PHP中单双引号的误区和双引号小隐患

许多程序员以为在PHP中单引号和双引号是一样的,其实这要看怎么用法,在有些方面它们确实是一样,但有一些方面它们也有着很大的区别,今天小编就来为您说说有哪些区别。 1、一般情况下两者是通...

php使用curl伪造来源ip和refer的方法示例

本文实例讲述了php使用curl伪造来源ip和refer的方法。分享给大家供大家参考,具体如下: php curl伪造来源ip和来路refer实例代码1: //随机IP functi...

Php header()函数语法及使用代码

语法:复制代码 代码如下:Void header(string $string[,bool $replace=true [, int $http_response_code)向客户端发送...

php 进阶:实现无限分类第1/4页

1.分析  我们在用 php 制作网站时,分类是很重要的,在分类下面又再分类这第二个分类称为次分类,而现在大多数网站分类只分到第三类:  第一分类...