Re: [PHP] How to find out what country the visitor comes from

2002-02-08 Thread bvr
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

Re: [PHP] How to find out what country the visitor comes from

2002-02-08 Thread Jon Farmer
- 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 > suitabl

Re: [PHP] How to find out what country the visitor comes from

2002-02-07 Thread Analysis and Solutions
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 HTTP_ACCEPT_

[PHP] How to find out what country the visitor comes from

2002-02-07 Thread SED
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) Sometime