1. <tfoot id='IQY38'></tfoot>

        <bdo id='IQY38'></bdo><ul id='IQY38'></ul>
      <legend id='IQY38'><style id='IQY38'><dir id='IQY38'><q id='IQY38'></q></dir></style></legend>
    2. <small id='IQY38'></small><noframes id='IQY38'>

        <i id='IQY38'><tr id='IQY38'><dt id='IQY38'><q id='IQY38'><span id='IQY38'><b id='IQY38'><form id='IQY38'><ins id='IQY38'></ins><ul id='IQY38'></ul><sub id='IQY38'></sub></form><legend id='IQY38'></legend><bdo id='IQY38'><pre id='IQY38'><center id='IQY38'></center></pre></bdo></b><th id='IQY38'></th></span></q></dt></tr></i><div id='IQY38'><tfoot id='IQY38'></tfoot><dl id='IQY38'><fieldset id='IQY38'></fieldset></dl></div>

        php标头已发送错误

        时间:2023-11-30

        <small id='uAs7K'></small><noframes id='uAs7K'>

            1. <tfoot id='uAs7K'></tfoot>

            2. <i id='uAs7K'><tr id='uAs7K'><dt id='uAs7K'><q id='uAs7K'><span id='uAs7K'><b id='uAs7K'><form id='uAs7K'><ins id='uAs7K'></ins><ul id='uAs7K'></ul><sub id='uAs7K'></sub></form><legend id='uAs7K'></legend><bdo id='uAs7K'><pre id='uAs7K'><center id='uAs7K'></center></pre></bdo></b><th id='uAs7K'></th></span></q></dt></tr></i><div id='uAs7K'><tfoot id='uAs7K'></tfoot><dl id='uAs7K'><fieldset id='uAs7K'></fieldset></dl></div>
                <tbody id='uAs7K'></tbody>

              <legend id='uAs7K'><style id='uAs7K'><dir id='uAs7K'><q id='uAs7K'></q></dir></style></legend>
                <bdo id='uAs7K'></bdo><ul id='uAs7K'></ul>

                  本文介绍了php标头已发送错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  可能重复:
                  已由 PHP 发送的标头

                  我有一个 php 文件,其中包含以下代码:

                  I have a single php file, with this code in it:

                  <?php header("Location: somepage.php"); ?>
                  

                  在 php 开始或结束标记之前或之后绝对没有空格,我得到了

                  Absolutely no spaces before or after the php opening or closing tags and I am getting the

                  Warning: Cannot modify header information - headers already sent by (output started at C: ... 	est.php:1
                  

                  通常当我收到此错误时,1 是问题的行号,但在这种情况下,第一行没有任何额外的空格.我在页面上只有此代码,不包括任何其他文件.

                  Usually when I get this error, the 1 is the line number of the problem, but in this case line one doesn't have any extra whitespace. I only have this code on the page and I am not including any other files.

                  我在 windows xp 上使用 xampp.任何想法发生了什么或我如何追查真正导致问题的原因.

                  I'm using xampp on windows xp. Any ideas what's going on or how I can track down what's really causing the problem.

                  谢谢

                  推荐答案

                  您可能拥有所谓的 BOM(字节顺序标记)在文件中.根据您使用的编辑器,您需要关闭添加 BOM...

                  Chances are that you have what's known as a BOM (Byte Order Mark) in the file. Depending on what editor you're using, you'll need to turn off adding the BOM...

                  这篇关于php标头已发送错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:PHP“标头(位置)"在 IFRAME 中,加载到 _top 位置? 下一篇:PHP Excel 标头

                  相关文章

                  1. <tfoot id='5IMfc'></tfoot>

                    <small id='5IMfc'></small><noframes id='5IMfc'>

                      <bdo id='5IMfc'></bdo><ul id='5IMfc'></ul>

                    <i id='5IMfc'><tr id='5IMfc'><dt id='5IMfc'><q id='5IMfc'><span id='5IMfc'><b id='5IMfc'><form id='5IMfc'><ins id='5IMfc'></ins><ul id='5IMfc'></ul><sub id='5IMfc'></sub></form><legend id='5IMfc'></legend><bdo id='5IMfc'><pre id='5IMfc'><center id='5IMfc'></center></pre></bdo></b><th id='5IMfc'></th></span></q></dt></tr></i><div id='5IMfc'><tfoot id='5IMfc'></tfoot><dl id='5IMfc'><fieldset id='5IMfc'></fieldset></dl></div>

                    1. <legend id='5IMfc'><style id='5IMfc'><dir id='5IMfc'><q id='5IMfc'></q></dir></style></legend>