Namespace declaration statement has to be the very first statement in the script

来源:互联网 发布:广州大塘附近淘宝培训 编辑:程序博客网 时间:2024/06/07 04:55

今天把php项目部署到win32服务器上,出现这个报错:Namespace declaration statement has to be the very first statement in the script

我在远程桌面上用记事本打开修改后无效。

于是安装了notepad++,打开文件后没有做修改,便用浏览器访问,报错没有了。

百度了一下,有高手建议“用notepad++把页面转为utp-8无dom格式”!我的情况应该和这种类似。

0 0
原创粉丝点击