今天精准像素在网上找到一款帝国模板准备测试分享大家,在恢复数据库时报错了Cannot modify header information...的错误,错误如下:
Warning: Cannot modify header information – headers already sent by (output started at /www/web/xueerxingCOM/public_html/e/data/language/gb/pub/fun.php:1) in /www/web/xueerxingCOM/public_html/e/class/connect.php on line 189Warning: Cannot modify header information – headers already sent by (output started at /www/web/xueerxingCOM/public_html/e/data/language/gb/pub/fun.php:1) in /www/web/xueerxingCOM/public_html/e/admin/ebak/class/functions.php on line 885
从出错信息来看,都是php文件第1行引发出错的情况,基本都是php文件的编码导致。
所以解决方法也非常简单,只需要用dreamweaver打开此文件。点修改—》页面属性,或按快捷键ctrl+j,调出设置面板,切换至“标题/编码”,把文件保存为对应的编码即可,另外将“包括unicode签名(bom)”这个选项去掉勾选。