阿里云服务器出现Warning: Cannot modify header information - headers already sent by (output started at 问题的解决方法

阿里云服务器出现Warning: Cannot modify header information - headers already sent by (output started at 问题的解决方法:

首先查看header("Content-type:text/html;charset=utf-8");前面是否有输出或空格,这个前面是不能有空格和输出的,

如果没有空格和输出仍出现这种情况,可以去改php.ini配置文件。

主机管理平台》高级环境设置》PHP.ini设置》PHP环境相关参数》输出缓冲区数据块设置》启用。

posted @ 2016-01-11 15:30  SKILL·NULL  阅读(476)  评论(0编辑  收藏  举报