Get location detail from the ip address

function ip_details($ip) {
    $json = file_get_contents("http://ipinfo.io/{$ip}");
    $details = json_decode($json);
    return $details;
}

Comments

Popular posts from this blog

Enable the imap in support in xampp server