In the first part of this series I showed how you could get the country of a visitor via his IP address. Now with this precious information, I’ll show you how to map the visitor visually on the world map using Google Maps.
In this short post I’ll show you how to geolocate your visitors with PHP. First of all let’s have a look at what you’ll need :
- PEAR GeoIP
- MaxMind GeoLite Country