php查询ip地址来源归属地的脚本
<? ('Content-Type:text/html;charset=utf-8'
(['sub' = ['ip' = ''
, (! = '请至少填写一个ip!' = (,'.' = ( ( != 3 || == || == -1 = '无效ip地址,请重新输入!' = ('http://www.ip138.com/ips1388.asp?action=2&ip='. = ('gb2312', 'utf-8', = (, '<li>本站主数据' (! = '没有查询到!' = (, '</li>', = ('<li>本站主数据:' = (, +, -- =
?><!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>test</title>
</head>
<body>
<form method="get">
<input type="text" name="ip" />
<input type="submit" value="search" name="sub" />
</form><br />
<?php ; ?>
</body>
</html>
PHP之友评论