Given an IP, how do you find out what country it is from? Can I do this in server side script like PHP? Thank you.
Use a whois. Usually it works well enough. Or you can google "IP Location". Here's something that I've found, ip2location.com/free.asp
If you want to integrate a GeoIP solution into your script, check out this site: http://www.maxmind.com/app/geolitecity They have a free downloadable database of IP ranges and the geographical locations that they cover. It's not extremely accurate, but it's free, and will do the job 90% of the time.
http://www.dnsstuff.com have a wide range of free tools (WHOIS Lookup, Traceroute, IP Information) to help you find the information you need.
Even you can get the website information along with web server usage statistics at greatstatistics.com
visit <a href="http://www.sanbik.co.cc">www.sanbik.co.cc</a> hope you will get the information which you are searching for.
i also suggest geroip as i created a script for a client to mas the referrers and redirect the users depending on their geo location. it's easy to use and its free