Help me with MaxMind ?

lovejesus

Regular Member
Joined
Jul 28, 2013
Messages
201
Reaction score
27
Hi,
i want to know the user country code using their IP address ,
i tried many free API's but all of them has limited usage So i decided to use Maxmind but the problem is
i dont know how to use it .

Anyone can Help me how i can setup Maxmind to know user country or with API ?
P.s i want to use PHP .
Thanks,
Have a nice day everyone!
 
If you want to use php code on you page I think you are familiar with : $_SERVER['REMOTE_ADDR'] etc. I'm not an expert, but just look at this topic, it seems to have some good advices : http://stackoverflow.com/questions/3003145/how-to-get-the-client-ip-address-in-php
Hi arsen, Thank you for responsding .
Im aware of php and also the functions to get the IP address of user but the problem here is my im not getting it how to implement their API on my server as they have provided a GeoIP.dat file which my hosting service is not recognizing :/

P.s im not Hostgator shared hosting
 
See here https://github.com/maxmind/geoip-api-php
A well documented MaxMind geoip with examples.
 
resolved^
instead of using composer , i manually specified the path of geoip.inc .
Working as expected.
 
Congratulations! By the way, MaxMind is right choice!
 
Congratulations! By the way, MaxMind is right choice!
Thank you, Yes heard a lot .
Currently using their free database which is in .dat format

Their paid service offers which database format , Do you have any idea ? because if they provide in .dat format then it will work but if its in some other format then im not sure whether it will work or nor :/.

One more Question , For general use; is their free database are good ?
 
Only ever used the batch online check and not the api, but I can say it's a great service.
 
This is great service and if you do not need to have always up to date data the free option is good enough.
 
You can go the free option and download the geo ip downloadable db - http://dev.maxmind.com/geoip/geoip2/geolite2/
 
You can go the free option and download the geo ip downloadable db - http://dev.maxmind.com/geoip/geoip2/geolite2/
Currently using their free database which is in .dat format .
The one you mentioned is in mmdb and csv .
i am not sure whether mmdb will work with the api im currently using , its worth giving a shot though . will try using format of mmdb database
 
Currently using their free database which is in .dat format .
The one you mentioned is in mmdb and csv .
i am not sure whether mmdb will work with the api im currently using , its worth giving a shot though . will try using format of mmdb database

It's very easy to load a csv file into a MySQL db. It is a compatible format.
 
Back
Top