摘要: /** * 获得用户的真实IP地址 * * @return string */function getRealip(){ static $realip = NULL; if ($realip !== NULL) { return $realip; } if (isset($_SERVER)) { if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) { $arr = explode(',', $_SERVER['HTTP_X_FORWARDED_FOR'])... 阅读全文
posted @ 2014-02-11 10:20 白牙青森 阅读(331) 评论(0) 推荐(0) 编辑