Forum Moderators: DixonJones
Failing that, you can check the 'Accept-Language' in the request header. Usually it is 'en-us', 'en-gb', 'fr' or whatever and can be a good indicator of location. Of course, it may be set incorrectly or could be a US laptop in France or something. Also, it might just be set to 'en', but it is quick and easy and requires very little work to get. You can get it easilly with
$_SERVER["HTTP_ACCEPT_LANGUAGE"] in PHP. have fun...