ob_start 和 headers 最奇怪的事情
ob_start 和所有标题在我的网页上不起作用。我搜索了整个代码,没有发现任何错误。然后我删除了所有代码并在文档顶部放置了一个标题位置,但它仍然不起作用,所以我只是创建了一个新文档,复制了旧文档中的代码,然后突然它开始工作。
大家明白为什么会出现这种现象吗?
ob_start and all the headers did not work on my webpage. I searched though my whole code and did not find anything wrong. Then I deleted all my code and placed a Header Location at the top of the dokument and it still didnt work so then I simply created a new document copied the code from the old document and then all of sudden it started to work.
Do any of you understand why this phenomenon occur?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
更多
发布评论
评论(1)
你用的是哪个编辑器?我在 Notepad++ 5.x 中也遇到过这样的问题。就我而言,我将文档编码从 UTF-8 更改为 ASCII,一切正常。
Which editor did you used? I also faced that kind of problem with Notepad++ 5.x. In my case, I changed document encoding from UTF-8 to ASCII and everything worked.