设置页面编码使用:

header("Content-Type:text/html;charset=utf-8");

会出现:Cannot modify header information

解决方法:

找到php.ini 这个配置文件,然后查找一项:output_buffering将其值由原来的off改为on,重新启动Apache就ok了。

posted on 2014-04-07 12:56  aparche  阅读(330)  评论(0编辑  收藏  举报