Get country name from ip-address <?php function countryCityFromIP($ipAddr) { //function to find country and city from IP address //verify the IP address for the ip2long($ipAddr)== -1 || ip2long($ipAddr) === false ? trigger_error(“Invalid IP”, E_USER_ERROR) : “”; $ipDetail=array(); //initialize a blank…