Рекурсивный акроним словосочетания «PHP: Hypertext Preprocessor»
Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 16502 программиста и 1681 робот. Сейчас ищут 1535 программистов ...
Net_GeoIP
Вернуться к: Сеть
Library to perform geo-location lookups of IP addresses.
This package is built on top of MaxMind's GeoIP databases to accurately determine the geographic location of an IP address. MaxMind offers both free and non-free database. Please refer to their website for specific instructures on obtaining both database types.
- Net_GeoIP::getInstance() — method to get an instance and avoid re-parsing the database
- Net_GeoIP::lookupCountryName() — returns full country name for specified IP address
- Net_GeoIP::lookupCountryCode() — returns 2-letter country code (e.g. CA) for specified IP address
- Net_GeoIP::lookupRegion() — returns the region for given IP address.
- Net_GeoIP::lookupLocation() — returns the location record for specified IP address
- Net_GeoIP::lookupOrg() — returns the name of the organization or ISP for the given IP address.
Вернуться к: Сеть