Hello Friends use this code for get
$ip=$_SERVER['REMOTE_ADDR'];
$addr_details = unserialize(file_get_contents('http://www.geoplugin.net/php.gp?ip='.$ip));
$city = stripslashes(ucfirst($addr_details[geoplugin_city]));
$countrycode = stripslashes(ucfirst($addr_details[geoplugin_countryCode]));
$country = stripslashes(ucfirst($addr_details[geoplugin_countryName]));
$ip=$_SERVER['REMOTE_ADDR'];
$addr_details = unserialize(file_get_contents('http://www.geoplugin.net/php.gp?ip='.$ip));
$city = stripslashes(ucfirst($addr_details[geoplugin_city]));
$countrycode = stripslashes(ucfirst($addr_details[geoplugin_countryCode]));
$country = stripslashes(ucfirst($addr_details[geoplugin_countryName]));
I think your blog has some good information php development . I found some useful information which definitely helps in future.
ReplyDeletehire php developers | wordpress development Agency