public static function getServerIp() { if(!empty($_SERVER['SERVER_ADDR'])) { return $_SERVER['SERVER_ADDR']; } return gethostbyname($_SERVER['HOSTNAME']); }
posted on 2017-08-25 17:53 dongruiha 阅读(959) 评论(0) 编辑 收藏 举报