Home > Backend Development > PHP Tutorial > Warning: Cannot modify header information

Warning: Cannot modify header information

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-20 12:36:52
Original
1232 people have browsed it

metinfo5.2安装成功提示:

Warning: Cannot modify header information - headers already sent by (output started at f:\ffff\index.php:1) in  f:\ffff\l\include\common.inc.php on line 4


回复讨论(解决方案)

显然 f:\ffff\index.php 被你编辑过了,留下了 BOM 头
并且你的 php 版本页比较低

你的index.php文件中用到了ob_start之类的?

header前不能有输出
可以在header前加上 ob_clean();

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template