摘要:
/** * 获取客户端IP地址 * @param integer $type 返回类型 0 返回IP地址 1 返回IPV4地址数字 * @return mixed */function get_client_ip($type = 0) { $type = $type ? 1 : 0; static $ip = NULL; if ($ip !== NULL) return $ip[$type]; if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) { $arr = explode(',', ... 阅读全文
posted @ 2013-08-29 15:52
漂定
阅读(312)
评论(0)
推荐(0)

浙公网安备 33010602011771号