Dear friends.., i would like to display the country name in my site depending upon the country location. Depneding upon ip that should display the name of the country...!!!! So is there any script....!!! to find This displaying the correct ip address of the country, but how can i print the name of the country i mean with flag..!! $ip = isset($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; echo "$ip <br>"; PHP:
As above, you'll need a 3rd party library/API to get this information. I personally use the GEOIP lite/free database as an apache module.