What are the location detecting techniques for IP addresses? I know to look at the $_SERVER[\'HTTP_ACCEPT_LANGUAGE\'] (not accurate but mostly useful to
$_SERVER[\'HTTP_ACCEPT_LANGUAGE\']
U can use this function
function ip_info(){ return $data = json_decode(file_get_contents('http://ip-api.com/json/'),true); }
Call the function
$info = ip_info(); var_dump($info);