获取IP,地址PHP代码!
2013-10-07 00:01:33 -0400
<?php
$ip=$_SERVER['REMOTE_ADDR'];
$city=file_get_contents("
http://wap.ip138.com/ip_search.asp?ip=$ip");
preg_match_all('!查询结果:(.*)</b>!isU',$city,$ci);
echo "你的ip是:$ip";
echo "来自:".$ci[1][0]."";
?>
Back to home
Subscribe |
Register |
Login
| N