country from ip address- PHP

We can do it using the API given below
<?php
	$country = file_get_contents("http://api.ipinfodb.com/v3/ip-country/?key=<Unique Key>&ip=$ip");
	print_r($country);
?>
Share

Leave a Reply

Your email address will not be published. Required fields are marked *