function get_geo_ip_code($ipaddr) { return file_get_contents("http://geoip.wtanaka.com/cc/$ipaddr"); }
get_geo_ip_code($_SERVER['REMOTE_ADDR']);
This is my usage example, print country code beside the flag:
<?php
function get_geo_ip_code($ipaddr) {
return file_get_contents("http://geoip.wtanaka.com/cc/$ipaddr");
//PHP Example Code
$geoloc= get_geo_ip_code($SERVER['REMOTE_ADDR']); print $geoloc; print "<img src='http://geoip.wtanaka.com/flag/".$geoloc.".gif'>";
?>
I am seeking a form of discovering the area of the ip in a certain parents. in case somebody please knows post. if I discover I will post. even Teo
This is my usage example, print country code beside the flag:
<?php
function get_geo_ip_code($ipaddr) {
}//PHP Example Code
$geoloc= get_geo_ip_code($SERVER['REMOTE_ADDR']); print $geoloc; print "<img src='http://geoip.wtanaka.com/flag/".$geoloc.".gif'>";
?>
I am seeking a form of discovering the area of the ip in a certain parents. in case somebody please knows post. if I discover I will post. even Teo