- $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];
 - }//开源软件:Vevb.com
 - if($user_IP == '上海'){
 - header('Location: A.php');
 - }elseif($user_IP == '北京'){
 - header('Location: B.php');
 - }else{
 - header('Location: C.php');
 - }
 
新闻热点
疑难解答