agrowhe.blogg.se

Maxmind ip demo
Maxmind ip demo












" \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.

maxmind ip demo

" \n " ) // 'MN' print ( $record -> city -> name.

maxmind ip demo

" \n " ) // 'Minnesota' print ( $record -> mostSpecificSubdivision -> isoCode. " \n " ) // '美国' print ( $record -> mostSpecificSubdivision -> name. " \n " ) // 'United States' print ( $record -> country -> names. " \n " ) // 'US' print ( $record -> country -> 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

maxmind ip demo

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. The performance of lookups in GeoIP2 or GeoLite2 databases. Includes an optional C extension that you may install to dramatically increase Require 'geoip2.phar' Optional C Extension














Maxmind ip demo