PHP - Converting IP to Country Hello, Is there any function/pre-made scripts in php which can tell me the name of country based on IP? For example: If I supply an IP 132.162.138.139 then the script would echo "India" Thanx in advance
Has been answered here: http://www.programmingtalk.com/showthread.php?t=37920 Why do people always have to post on multiple forums?
http://www.google.com/search?source=ig&hl=en&q=geoip+php&btnG=Google+Search The same reason people advertise their products and services on multiple forums / sites.. it increases their chances of being seen / heard / answered .
Yes, and if he posts this on 5 forums, 4 people will have done their work for nothing. In this case here it's not a big deal, but when it's a programming question, people just waste their time...
You could say that about selling products too, it's just a more practical way to get a answer faster. No one is requiring anyone to answer, plus if the answer is posted on 5 forums maybe there will be less people in the future who will ask. I see your point, just playing devils advocate
We are using MaxMind GEO Ip database and API. It has free lite version which is still pretty accurate.
Someone wrote a php extension for maxminds api, v easy to use, and maxmind themselves wrote a php version of thier api too if you can't install extensions
hey i need the same but some like this you enter the website and it says you are from country from this ip really interested
I can't remember where I saw it but there is someone that provides an accurate IP-country database in csv format thats fairly easy to code for, i'll see if i can fish out the link again.
I have this for a load balancing webpages , but unsure where i got it from you will need a sql db installed and the lall evel2 ip address really cool let me do some searching around , im me an i will send you the file