예제 #1
0
파일: Http.php 프로젝트: hongbo819/APILJL
 /**
  * 是发送head头,可以应用在请求统计脚本
  */
 public static function ip2location($paramArr)
 {
     $options = array('ip' => '');
     if (is_array($paramArr)) {
         $options = array_merge($options, $paramArr);
     }
     extract($options);
     include LJL_API_BASE . '/qqwry/iplocation.inc.php';
     $ipClass = new IpArea();
     $location = $ipClass->get($ip);
     return $location;
 }
예제 #2
0
파일: Http.php 프로젝트: hongbo819/LJL
 public static function ip2location($ip)
 {
     include LJL_API_BASE . '/qqwry/iplocation.inc.php';
     $ipClass = new IpArea();
     $location = $ipClass->get($ip);
     return $location;
 }