PHP获取访问者IP
本文来自lyz810的空间,http://hi.baidu.com/lyz810/blog/item/bad32413683cb84df819b88d.html<?php
header('Content-Type:text/html;charset=utf-8');
?>
<html>
<head>
<title>PHP测试</title>
</head>
<body>
<?php
$ip=$_SERVER['REMOTE_ADDR'];
echo "你的IP是:".$ip." <a href=\"http://www.cz88.net/ip/?ip=".$ip."\"target=\"_blank\">查询IP归属地</a>";
?>
</body>
</html>
页:
[1]