PHP报Warning: Cannot modify header information
PHP报Warning: Cannot modify header information - headers already sent by (output started at的处理方法
1.可能是BOM格式与UTF-8冲突导致,用编辑器选择UTF-8无BOM编码格式
2.header('Content-Type:text/html;charset= UTF-8');发送头之前不能有任何输出,空格也不行,你需要将header(...)之前的空格去掉,或者其他输出的东西去掉,如果他上面include其他文件了,你还要检查其他文件里是否有输出.