I'm trying to get the current user's language settings using:
$lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
When I VPN into another country, or even use geopeeker.com, I still get "en" when I echo out $lang.
Is this method not the best way of going about this? Or is my method of testing flawed?