情况是header(location:xxx)不能到我想要到的页面去
我在自己机子上编写,调试都顺利,一点问题没有,
一样的代码放到别人机子上就不行了不会找不到文件
我是用变量作为location后的参数的
而且我用echo输出了要执行的语句,没问题

解决方案 »

  1.   

    对了,我正在用header()这个函数,为什么总是出现这样的错误呢?Warning: Cannot modify header information - headers already sent by (output started at e:\inetpub\wwwroot\PHPED\ZIBIAN\room\bbslogin.php:2) in e:\inetpub\wwwroot\PHPED\ZIBIAN\room\bbslogin.php on line 46Warning: Cannot modify header information - headers already sent by (output started at e:\inetpub\wwwroot\PHPED\ZIBIAN\room\bbslogin.php:2) in e:\inetpub\wwwroot\PHPED\ZIBIAN\room\bbslogin.php on line 46请你帮一下忙啦!谢谢
      

  2.   

    headers already sent by ?
    在header前已经有输出了。
      

  3.   

    “iamwho(我是谁)”说的意思是你想连接的那个文件有没有拷贝到你同学的机器上。
    怎么找不文件法,请给出错误信息好吗?
      

  4.   

    是不是应该把header(location:xxx)放到前面?
      

  5.   

    head前一定不能有输出,最好放在网页头位置
      

  6.   

    为什么我放到网页的头页还是不行?
    <?php 
    header("location:*******");
    >
      

  7.   

    header("location:uri");此处的uri必须是绝对路径即http://......形式的,可以在php手册上找到。