$IP_str=file_get_contents('http://int.dpool.sina.com.cn/iplookup/iplookup.php');
$IP_tmp = explode("n", $IP_str);
$IPcou=count($IP_tmp)-1;
$IP_tmp1 = explode("        ", $IP_tmp[0]);
if($IP_tmp1[5]){
        $user_IP=$IP_tmp1[5];        
}else{
        $user_IP=$IP_tmp1[4];                
}
if($user_IP == '上海'){
   header('Location: A.php');
}elseif($user_IP == '北京'){
   header('Location: B.php');
}else{
   header('Location: C.php');
}
?>版权声明: 本站资源均来自互联网或会员发布,如果侵犯了您的权益请与我们联系,我们将在24小时内删除!谢谢!