예제 #1
0
파일: qqwry.php 프로젝트: luozhanhong/share
 private static function getEndIp()
 {
     fseek(self::$fp, self::$EndIpOff, SEEK_SET);
     $buf = fread(self::$fp, 5);
     self::$EndIp = ord($buf[0]) + ord($buf[1]) * 256 + ord($buf[2]) * 256 * 256 + ord($buf[3]) * 256 * 256 * 256;
     self::$CountryFlag = ord($buf[4]);
     return self::$EndIp;
 }