-
From: SED [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 07, 2002 12:11 PM
Subject: [PHP] How to find out what country the visitor comes from
Hi,
I'm trying to find out what country the visitor comes from to offer them
suitable language (like google.com does) but I haven't found
The way Google determines what language to use is by checking the
Accept-Language header which is added by your browser.
The value of this request header is stored automatically in the $_SERVER
array. Check with phpinfo() or print_r($_SERVER);
Although IP may be more reliable to determine the
Hi,
I'm trying to find out what country the visitor comes from to offer them
suitable language (like google.com does) but I haven't found a method
that works 100%. What I have come up with so far is to use
$HTTP_X_FORWARDED_FOR
or
gethostbyaddr($REMOTE_ADDR)
Hi:
SED wrote:
I'm trying to find out what country the visitor comes from to offer them
suitable language
$HTTP_X_FORWARDED_FOR
or
gethostbyaddr($REMOTE_ADDR)
Domain names and IP's are NOT the way to go. Way to unreliable. Use the
HTTP header
4 matches
Mail list logo