<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>IP地址查询_365官方导航_天天导航网</title>
<meta name="keywords" content="365日历,365官方,365音乐,网址导航,周公解梦,实用查询,IP地址,工具大全" />
<meta name="description" content="365官方导航(tt365.org)_天天导航网,提供IP|黄历|周公解梦|万年历|手机归属地|区号|身份证|天气预报查询|各种实用查询">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
<link href="../css/jiuyaocha.css" rel="stylesheet" type="text/css" />
<link href="../favicon.ico" rel="shortcut icon" />
</head>
<body>
<?php
/*function get_onlineip(){ 
$ch = curl_init('http://www.ip138.com/ip2city.asp'); 
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); 
$a = curl_exec($ch); 
preg_match('/\[(.*)\]/', $a, $ip); 
return $ip[1]; 
}
$ip=get_onlineip(); */
//if($_GET['myip']=="")
$ip=$_SERVER['REMOTE_ADDR'];
if($_GET['flag']=="TRUE"){
if($_GET['myip']!="")
	$ip=$_GET['myip'];
else	
	$ip=$_SERVER['REMOTE_ADDR'];
}
$result=@file_get_contents("http://www.youdao.com/smartresult-xml/search.s?type=ip&q=".$ip);
$arr=split("<ip>",$result);
$arr1=split("</location>",$arr[1]);
$arr2=split("</ip>",$arr1[0]);
$arr3=split("<location>",$arr1[0]);
if($_GET['flag']=="TRUE")
	$txl_ip="您查询的ip地址：".$arr2[0];
else
	$txl_ip="您的ip地址：".$arr2[0];
$txl_location="ip地理位置：".$arr3[1];
$result=$txl_ip."<BR>".$txl_location;
if(!preg_match("((?:(?:25[0-5]|2[0-4]\d|[01]?\d?\d)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d?\d))",$ip))
 $result="抱歉，未查到有关<font color='#FF0000'>".$ip."</font>的信息！请检查您是否输入正确。";
?>
<script language="javascript" src="../adjs/header1.js"></script>
<div class="flo_l nav"><ul><li class="nav2"><a href="../" >生活查询</a></li>
<li class="nav2"><a href="../yule" >娱乐工具</a></li>
<li class="nav2"><a href="../caijing" >财经商务</a></li>
<li class="nav2"><a href="../jisuan" >计算/学习</a></li>
<li class="nav1"><a href="../wangluo" >电脑网络</a></li>
<li class="nav2"><a href="../zhanzhang" >站长工具</a></li>
<li class="nav2"><a href="../jiaotong" >交通查询</a></li>
</ul></div>
</div></div></div>
<div class="w950">
<div class="knr"><div class="xdh">
<ul id="ful">
<script language="javascript" type="text/javascript" src="../js1/wangluo.js"></script>
</ul></div></div>
<div class="head3"></div></div>

<script language="javascript" type="text/javascript" src="../js1/ad.js"></script>
<div style='height:5px;'></div>
<div class="w950">
  <div class="head4">
    <div class="Ico_aBox">
      <div class="Ico_aBox_icon INico15"></div>
      <div class="Ico_aBox_tit">IP地址查询</div>
    </div>
  </div>
  <div class="knr">
    <div class="mobile_main">
      <div class="mobile_k mob_body mar10">
	 <form   name="form1"   method="get"   action="">
<b>输入IP：</b><input name="myip" type="text" class="mob_int" value="" />
<input name="submit" type="submit" class="mob_copy1" value=" 提交 " />
<input type="reset" class="mob_copy1" value=" 重置 ">
<input type="hidden" name="flag" value="TRUE" />
	 </form>
        <font style="color:#808080">* 收录IP数据<span>7318561条</span>，数据仅供参考，本站不对IP数据正确性承担任何责任！</font>
	  </div>
		
<div class="mobile_k mar10" id="ipResult" >
	<div class="mob_body1"><a name="001" id="001"></a>
<?php echo $result;?>
	</div>
	
	<script type="text/javascript"> /*728*90，创建于2010-10-12*/ var cpro_id = 'u235878';</script>
<script type="text/javascript" src="http://cpro.baidu.com/cpro/ui/c.js"></script>
</div>

		
		<div class="mob_det">IP是英文Instruction pointer的缩写，意思是“网络之间互连的协议”，IP协议也可以叫做“因特网协议”。<br />
	    通俗的讲：IP地址也可以称为互联网地址或Internet地址，是用来唯一标识互联网上计算机的逻辑地址。每台连网计算机都依靠IP地址来标识自己，就很类似于我们的电话号码一样，通过电话号码来找到相应的电话，全世界的电话号码都是唯一的。IP地址也是一样。</div>
      </div>
  </div>
  <div class="head3"></div>
<script language="javascript" src="../adjs/footer.js"></script>
<div style="display:none">
<script language="javascript" src="../adjs/tongji.js"></script></div>
</body>
</html>
