ob_start 和 headers 最奇怪的事情

发布于 2024-08-13 10:23:49 字数 145 浏览 6 评论 0原文

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

硪扪都還晓 2024-08-20 10:23:49

你用的是哪个编辑器?我在 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文