php报错“Parse error: syntax error”是什么原因?

如题所述

是字符串拼写的问题,经常还会有在语句最末尾忘记加上“;”而导致的。syntax error, unexpected T_VARIABLE 是PHP开发常见的错误,也是最为低级的错误

PHP,一个嵌套的缩写名称,是英文超级文本预处理语言(PHP:Hypertext Preprocessor)的缩写。PHP 是一种 HTML 内嵌式的语言,PHP与微软的ASP颇有几分相似,都是一种在服务器端执行的嵌入HTML文档的脚本语言,语言的风格有类似于C语言,现在被很多的网站编程人员广泛的运用。

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 SiteEngine1146: 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)     

温馨提示:答案为网友推荐,仅供参考