在该语句之前不能有任何打印输出语句(print或echo)

解决方案 »

  1.   

    不光print echo 不行,连HTML标记都不可以有的~一个字都不可以,空格也不行:)
    等等,马上就有解决办法:)
      

  2.   

    echo "asdfasdfa";
    ob_start(); //打开缓冲区 
    header("location: /index.htm"); //把浏览器重定向到index.php 
    ob_end_flush();//输出全部内容到浏览器 got it
      

  3.   

    可以有php代码,但不可以输出任何内容的
      

  4.   

    nono象我那样写,不管什么代码都可以有的,有点象asp的response.buffer = true response.redirect response.flush