不要print 试一下?
而且在语句前面不应该有任何空格出现
在文章 最前面的<?前也不要有空格

解决方案 »

  1.   

    header都要前面不能有输出,参考:
    http://www.csdn.net/expert/topic/892/892270.xml?temp=.8562586
      

  2.   

    没有用,
    temp.php文件里只有:
    <html>
    <body>
    <?PHP
    print Header("Location: http://localhost/temp2.php");
    ?>
    </body>
    </html>
      

  3.   

    你应该这样子放:<?
    Header("Location: http://localhost/temp2.php");
    ?>
    <html>
    <body></body>
    </html>
      

  4.   

    呵呵 连<html>等都不能输出
    改为
    <?PHP
      Header("Location: http://localhost/temp2.php");
    ?>
    <html>
    <body></body>
    </html>