keropeq.blogg.se

Maxmind lookup
Maxmind lookup














" \n " ) // 77 print ( $record -> mostSpecificSubdivision -> name. " \n " ) // '美国' print ( $record -> mostSpecificSubdivision -> confidence. " \n " ) // 'United States' print ( $record -> country -> names. " \n " ) // 'US' print ( $record -> country -> name. " \n " ) // 99 print ( $record -> country -> isoCode. " \n " ) // '128.101.101.101/32' Anonymous IP ExampleĮnterprise method to do a lookup in the Enterprise database $record = $reader -> enterprise ( '128.101.101.101' ) print ( $record -> country -> confidence. " \n " ) // 'Minneapolis' print ( $record -> postal -> code. " \n " ) // 'MN' print ( $record -> city -> name. " \n " ) // 'Minnesota' print ( $record -> mostSpecificSubdivision -> isoCode.

maxmind lookup

" \n " ) // '美国' print ( $record -> mostSpecificSubdivision -> name. See the API documentation for more details. \MaxMind\Db\InvalidDatabaseException will be thrown. If the record is not found, a \GeoIp2\Exception\AddressNotFoundException This model in turn contains multiple containerĬlasses for the different parts of the data such as the city in which the If the lookup succeeds, the method call will return a model class for the May then call the method corresponding to the database you are using. The path to the database file as the first argument to the constructor. To use this API, you must create a new \GeoIp2\Database\Reader object with Should not be used to identify a particular address or household. Any location provided by a GeoIP2 database or web service The extension has no effect on web-service lookups. To install, pleaseįollow the instructions included with that API.

maxmind lookup

The performance of lookups in GeoIP2 or GeoLite2 databases.

#Maxmind lookup install

Includes an optional C extension that you may install to dramatically increase Require 'geoip2.phar' Optional C Extension














Maxmind lookup