首页 > 编程语言 >PHP 错误 系列:编码格式错误解决

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

时间:2023-02-21 10:02:53浏览次数:33  
标签:编码 错误 错误代码 notepad statement 格式 PHP 页面


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

错误页面显示:

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

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格式就好了



 









标签:编码,错误,错误代码,notepad,statement,格式,PHP,页面
From: https://blog.51cto.com/tinywan/6075836

相关文章