I wanna display user\'s/visitor\'s country flag on my site.
I am using different technologies like php,jsp and simple html. So I want a code which by placing on my site,
You can use the GeoIP extension and then map the country in question to a given icon.
$countryName = geoip_country_name_by_name($_SERVER['REMOTE_ADDR']); echo $countryName;
Note that getting the country via IP is not exact.