摘要: php获取客户端IP地址的几种方法PHP Code one:1//php获取ip的算法2$iipp=$_SERVER["REMOTE_ADDR"];3echo$iipp;PHP Code two:1//php获取ip的算法2$user_IP=($_SERVER["HTTP_VIA"])?$_SERVER["HTTP_X_FORWARDED_FOR"]:$_SERVER["REMOTE_ADDR"];3$user_IP=($user_IP)?$user_IP:$_SERVER["REMOTE_ADDR&qu 阅读全文
posted @ 2012-10-15 15:33 易木 阅读(281) 评论(0) 推荐(0) 编辑