Home  >  Article  >  Backend Development  >  session也许header均提示有头信息什么的已经输出

session也许header均提示有头信息什么的已经输出

WBOY
WBOYOriginal
2016-06-13 13:15:47942browse

session或者header均提示有头信息什么的已经输出。
问题我概括一下吧。
1:一开始是跳转的时候,提示出错,然后我换成HTML的跳转,因为我用的是WAMP集成环境,恐怕是环境问题,也就没大调试。
2:session()的时候,还是提示,我确定前面没有输出,可还是如此提示。我找了如此几个方法进行测试。

  有文件包含 (include ***)
1)保存为UTF8为bom模式,依旧,
2)var_dump(headers_sent());如果干掉包含就显示0,不删掉包含文件就显示1.

能力所限,百度已尽,还望大手帮我。

------解决方案--------------------
output started at D:\wamp\www\Blog\class\DB.class.php:1
输出在 D:\wamp\www\Blog\class\DB.class.php 第 1 行

这么简单明了的提示,为什么视而不见呢?

Statement:
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