utf-8检测

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /.../vhindex.php:1) in /.../vhindex.php on line 2

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /.../vhindex.php:1) in /.../vhindex.php on line 2

这样的错误,说是啊session.start()前已经有输出,用编辑器打,前面明明什么都没有。

 

我试过很多方法都不行,后来网上搜到使用UltraEdit编辑器(很好用的一个编辑器,网上多的是,自己下去),打开高级----配置----Unicode/utf-8 检测,把自动检测UTF-8文件,自动检测没有BOM的Unicode文件等前面的勾全去掉,然后你再打开那个文件,就会发觉“锘 ”这个字符出现了,删除就OK了。

 

“锘 ”这个字符,在index.php和config.php都有,因此修改后,就没这个错了,能够正常登陆后台了

posted on 2014-12-16 17:10  jly553  阅读(238)  评论(0编辑  收藏  举报