由于最近总是接触到php,经常会出现一些错误,特把php的常见的错误代码收集了下,希望对大家有帮助
错误类型:
一、未使用二进制上传
代码:
Fatal error: This encoded file is corrupted. Please refer to http://www.php.cn/;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
十一、这是语言管理中的language表里面有些字段没有引号,有些新增模块有这样的问题
代码:
Boka SiteEngine
数据库错误
错误信息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
出现错误的查询信息是
UPDATE boka_language
十二、不存在此函数
代码:
Fatal error: Call to undefined function: buildhtml() in /usr/boka/www.lzj.bsa.cn/admin/news.php on line 894
十三、服务器执行时间超时.修改php.ini里的设置
代码:
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
十四、调用了不存在的类
代码:
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服务进程
代码:
cannot create windows service for mysql.error:0
十七、数据表错误,修复数据表.(检查数据库的表。通过phpmyadmin即可修复)
代码:
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.
十七,环境zend未安装
代码:
Zend Optimizer not installed
十八,安装是没有任何反应,输入install.php面空白。
环境错误提示被屏蔽,察看文件是否用二进制传送或者是zend是否有安装。
十九、数据库出现
代码: [拷贝到剪贴板]
too many connections
数据库链接数太多,修改mysql的最大链接数。
二十、输入安装install.php提示
install.php 不允许执行原因是:
脚本权限错误:不能设置为同组可写!
服务器端配置:
Server Administrator/Contact: [no address given]
Server Name: www.***.com
Server Port: 80
Server Protocol: HTTP/1.1
访问请求数据:
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
这个错误是由于数据库恢复不正常。请核实2个数据库的版本是否一致。
二十二、在2003下执行install.php文件,点击"下一步"的按钮点击不下去.
请检查2003下的IE的安全设置为中。

What’s still popular is the ease of use, flexibility and a strong ecosystem. 1) Ease of use and simple syntax make it the first choice for beginners. 2) Closely integrated with web development, excellent interaction with HTTP requests and database. 3) The huge ecosystem provides a wealth of tools and libraries. 4) Active community and open source nature adapts them to new needs and technology trends.

PHP and Python are both high-level programming languages that are widely used in web development, data processing and automation tasks. 1.PHP is often used to build dynamic websites and content management systems, while Python is often used to build web frameworks and data science. 2.PHP uses echo to output content, Python uses print. 3. Both support object-oriented programming, but the syntax and keywords are different. 4. PHP supports weak type conversion, while Python is more stringent. 5. PHP performance optimization includes using OPcache and asynchronous programming, while Python uses cProfile and asynchronous programming.

PHP is mainly procedural programming, but also supports object-oriented programming (OOP); Python supports a variety of paradigms, including OOP, functional and procedural programming. PHP is suitable for web development, and Python is suitable for a variety of applications such as data analysis and machine learning.

PHP originated in 1994 and was developed by RasmusLerdorf. It was originally used to track website visitors and gradually evolved into a server-side scripting language and was widely used in web development. Python was developed by Guidovan Rossum in the late 1980s and was first released in 1991. It emphasizes code readability and simplicity, and is suitable for scientific computing, data analysis and other fields.

PHP is suitable for web development and rapid prototyping, and Python is suitable for data science and machine learning. 1.PHP is used for dynamic web development, with simple syntax and suitable for rapid development. 2. Python has concise syntax, is suitable for multiple fields, and has a strong library ecosystem.

PHP remains important in the modernization process because it supports a large number of websites and applications and adapts to development needs through frameworks. 1.PHP7 improves performance and introduces new features. 2. Modern frameworks such as Laravel, Symfony and CodeIgniter simplify development and improve code quality. 3. Performance optimization and best practices further improve application efficiency.

PHPhassignificantlyimpactedwebdevelopmentandextendsbeyondit.1)ItpowersmajorplatformslikeWordPressandexcelsindatabaseinteractions.2)PHP'sadaptabilityallowsittoscaleforlargeapplicationsusingframeworkslikeLaravel.3)Beyondweb,PHPisusedincommand-linescrip

PHP type prompts to improve code quality and readability. 1) Scalar type tips: Since PHP7.0, basic data types are allowed to be specified in function parameters, such as int, float, etc. 2) Return type prompt: Ensure the consistency of the function return value type. 3) Union type prompt: Since PHP8.0, multiple types are allowed to be specified in function parameters or return values. 4) Nullable type prompt: Allows to include null values and handle functions that may return null values.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

Dreamweaver CS6
Visual web development tools

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.