PHP 错误 系列:编码格式错误解决

一、Phalcon模型代码日志错误代码

错误页面显示:

Log日志错误代码:

PHP message: PHP Fatal error:  Namespace declaration statement has to be the very first statement in the script in /home/www/mlk/app/common/models/AclRole.php on line 3

处理办法:

用notepad++把页面转为utp-8无dom格式就好了

 

二、数据库连接失败错误处理(ThinkPHP 配置文件出现的问题)

错误代码:

SQLSTATE[HY000] [1045] Access denied for user 'wechatu'@'218.108.35.150' (using password: YES)

处理办法:

用notepad++把页面转为utp-8无dom格式就好了

 

posted @ 2016-09-12 11:59  Tinywan  阅读(794)  评论(0编辑  收藏  举报