Getting visitors country from their IP

geoip_country_code_by_name

The geoip_country_code_by_name() function will return the two letter country code corresponding to a hostname or an IP address.

geoip_country_name_by_name

The geoip_country_name_by_name() function will return the full country name corresponding to a hostname or an IP address.

Categories: Pecl, PHP Tags: , ,
%d bloggers like this: