Posts: 275
Name: Mark Stegeman
Location: Netherlands, Europe
|
It doesn't actually contain the language of the user.
It only contains which language the browser chooses first if he could. This can be set for each browser.
If you really want to use it, use this:
PHP Code:
<?php $country = substr(explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']),0,2); // Makes 'en' from 'en-us' ?>
Here are all the land codes:
http://www.phptutorial.info/scripts/languages.php
__________________
<?php ($helpfull>0)?$talkupation++ : '';?>
|