|
geoip_record_by_name
Returns the detailed City information found in the GeoIP Database
(PECL geoip:0.2.0-1.0.1)
The geoip_record_by_name() function will return the record information corresponding to a hostname or an IP address. This function is available for both GeoLite City Edition and commercial GeoIP City Edition. A warning will be issued if the proper database cannot be located. The names of the different keys of the returning associative array are as follows:
Return Values
Returns the associative array on success, or ExamplesExample 774. A geoip_record_by_name() exampleThis will print the array containing the record of host example.com. <?php The above example will output: Array |