Home >Backend Development >PHP Tutorial >Detailed analysis of errors in PHP code Page 1/2_PHP Tutorial
Error type:
1. Binary upload is not used
Code:
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
2. Fields are missing in the data table
Code:
An error was encountered
Boka SiteEngine
Database error
Error message 1054: Unknown column 'tuijian' in 'where clause '
The error query information is
SELECT * FROM boka_product WHERE tuijian=1 AND classid IN ('1','0')ORDER BY id DESC LIMIT 4
3. The server limits the memory size used by the website to 8M, which has now exceeded
Code:
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 5898240 bytes)
4. This is a template error. The template pointed out in line 529 of header.php has an error in line 79 of the template
[code]in /webhome/***.com/web/www /header.php(529): eval()'d code on line 79
5. The database table does not exist
Code:
An error was encountered
Boka SiteEngine
1146: Table 'test.boka_settings' doesn't exist
SELECT value FROM boka_settings WHERE variable='defaultstyleid'
6. Not installed or the user name and password of the database are incorrect
Code:
An error was encountered
Boka SiteEngine
1045: Access denied for user: 'root @localhost' (Using password: YES)
7. There is an error in the query statement
Code:
Boka SiteEngine
Database error
Error message 1064: You have an error in your SQL syntax near 'ORDER BY sequence ASC,id ASC' at line 1
The error query information is
UPDATE gzhy_newsclass SET ishidden ='1' WHERE id = ' 38' ORDER BY sequence ASC,id ASC
8. File expiration
Code:
There is a fatal error, the file has expired
9. There is an error in the database. Do you need to repair the database or restart the database?
Code:
An error was encountered
Boka SiteEngine
2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
10.
Code:
Warning: Unexpected character in input: ' ' (ASCII=4) state=1 in c:program filessiteenginesiteenginephpwwwindex.php on line 97
Warning: Unexpected character in input: ' ' (ASCII=5) state=1 in c:program filessiteenginesiteenginephpwwwindex.php on line 97
Parse error: parse error, unexpected T_STRING in c:program filessiteenginesiteenginephpwwwindex.php on line 97