我的 LAMP 服务器输出 在任何事情之前
我有一个灯服务器,它有一个输出,我认为这也是使用 header('location: xxxx'); 防止页面重定向的原因;
它并不总是显示,但有时它只是输出
我正在使用 ob_start('ob_gzhandler');
,这是我认为可能导致此问题的唯一原因,有人可以帮忙吗?
更新 我有时使用 Dreamweaver,我认为这是编辑器造成的。当我尝试保存时,它仅显示 Unicode 选项:
- C(规范分解,后跟规范组合)
- KC(兼容性分解,后跟规范组合)
- KD(兼容性分解)
- D(规范分解)
,然后勾选“包含 Unicode”签名(物料清单) 尽管我的问题是 BOM,但我从来没有检查过
I have a lamp server and it has an output that I think is also the cause of preventing page redirections using header('location: xxxx');
it doesn't always show up but sometimes it just outputs 
I am using ob_start('ob_gzhandler');
, the only thing that I thought might be causing this, can anyone help please?
UPDATE
I used Dreamweaver sometimes and I think it's the editor that's causing it. It only shows Unicode options when I try to save:
- C (Canonical Decomposition, followed by Canonical Composition)
- KC (Compatibility Decomposition, followed by Canonical Composition)
- KD (Compatibility Decomposition)
- D (Canonical Decomposition)
and then a check mark for "Include Unicode Signature (BOM)
which I never check off even though my problem is the BOM
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
 是 UTF-8 的 BOM,因此尝试使用“UTF-8 without BOM”编码保存文件并检查是否可以解决该问题。
 is BOM for UTF-8, so try saving the file with "UTF-8 without BOM" encoding and check if it solves it.
您可以尝试通过更改内容类型来纠正此问题。
You can try correcting this by changing your content type.