// archives

country

This tag is associated with 3 posts

Geolocate your visitors with PHP (part 1)

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

Installing PEAR GeoIP
Using your console or using the command prompt type :
 
pear install http://download.pear.php.net/package/Net_GeoIP-1.0.0RC1.tgz
 
Obtaining MaxMind GeoLite Country
The database can be downloaded freely here. Download it and put [...]