Header()之前有输出
大多是看不见的空格回车制表符等

解决方案 »

  1.   

    手册里面的原文:
    Remember that header() must be called before any actual output is sent, either by normal HTML tags, blank lines in a file, or from PHP. It is a very common error to read code with include(), or require(), functions, or another file access function, and have spaces or empty lines that are output before header() is called.
      

  2.   

    没有任何输出啊,比如从index.php传一变量到a.php,例$aa=$_post['name'];
    在a.php里这样,if(isset($aa)) header('Location:b.php');
    就会出以上的错误啊
      

  3.   

    给你的代码截个图给我们看看。
    大概楼主以为echo或print才算是输出吧。
      

  4.   

    文件什么编码?以前用editplus在utf8文件前加个不可见的dom 后来在zend里发现的