There is a simple way to get ur visitors country info frm his/her ip... Just use the code
PHP Code:
<?php
$IP = $_SERVER['REMOTE_ADDR'];
$country = file_get_contents('http://api.hostip.info/country.php?ip='.$IP);
echo $IP.'/'.$country;
?>
Comment