1 header("Location:http://www.baiud.com"); 
函数前不能有任何数据输出.
楼主可能屏蔽错误了吧.
猜测可能的原因.
2 另外header("Location:http://www.baiud.com"); 最好写成这样,
header("Location: http://www.baiud.com"); 

解决方案 »

  1.   

    所有的是if($customer['WEB'] == 1 or $customer['WEB'] == ""){
    header("Location: http://www.baiud.com"); 
    return;
    }

    else if($customer['WEB'] == 2){
    Header("Location: http://www.goolge.com");
    return ;
    }
      

  2.   

    再header前后都加echo 都能打出log,但就是不能够跳转
      

  3.   

    程序头部有没有引用别的文件,如果有,而且引用的文件中有输出的话,Header("Location: http://www.goolge.com"); 也不能正常输出!
      

  4.   

    你看看 <??>前面有空格之类的东西没有