Warning: Cannot modify header information - headers already sent by (output started at G:\AppServ\www\nt\checkpwd.php:12) in G:\AppServ\www\nt\checkpwd.php on line 59
这个错误在哪里第59行是:header("Location:127.0.0.1/nt/main.htm");感觉没错误啊~
什么原因谢谢

解决方案 »

  1.   

    在设置cookie或输入header信息之前输出了其他信息。
    最前面加上ob_start();
    把输出信息缓存起来。
      

  2.   

    header 函数前不能有输出,而你的 checkpwd.php 的第 12 行处有输出
      

  3.   

    换成这个试下
    echo "<script>location.href='nt/main.htm';</script>";
      

  4.   

    检查下3楼说的错误,要是都没错的话,看看是不是utf8头dom头问题.
      

  5.   

    换成这个应该好用,或者你看下你header之前有没有html输出,如果有的话,就会出错
      

  6.   

    前面有输出,顶5#的utf-8头问题