very hard. that assumes you can do a reverse lookup, which is not always the case, and even if you can it sometimes takes a _huge_ amount of time... you could do it off the selected language, but that doesn't give you geographical location. better to just ask. hi, where are you? and set a cookie. -alex -- Alex Black, Head Monkey [EMAIL PROTECTED] The Turing Studio, Inc. http://www.turingstudio.com vox+510.666.0074 fax+510.666.0093 Saul Zaentz Film Center 2600 Tenth St Suite 433 Berkeley, CA 94710-2522 > From: [EMAIL PROTECTED] (Cynic) > Newsgroups: php.general > Date: 11 Jan 2001 07:06:54 -0800 > Subject: Re: [PHP] Netscape does not show all the variables > > you won't find out anything useful this way. I'm Czech (central > Europe), and have en-us at the first position in the list of > preferred languages. > > At 15:53 11.1. 2001, Sam wrote the following: > -------------------------------------------------------------- >> Hi all, >> >> when I use IE, and do a phpinfo() >> >> The variable >> HTTP_ACCEPT_LANGUAGE displays en-gb (for english GB) >> >> But Netscape only displays en... >> >> The problem is, is that I want to know where visitors to my site are coming >> from i.e. UK, US, Australia, so that I can do a bit of php so that the >> relevant information is produced. >> >> Is there anyway to do this, using php? >> >> Thanks >> >> Sam Rose >> >> >> ____________________________________________________________________________ >> ________________________________________________________________ >> >> The information in this email and in any attachments is confidential and may >> be privileged. If you are not the intended recipient, please destroy this >> message, delete any copies held on your systems and notify the sender >> immediately. You should not retain, copy or use this email for any purpose, >> nor disclose all or any part of its content to any other person. >> >> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> To contact the list administrators, e-mail: [EMAIL PROTECTED] > ------end of quote------ > > > > ____________________________________________________________ > Cynic: > > A member of a group of ancient Greek philosophers who taught > that virtue constitutes happiness and that self control is > the essential part of virtue. > > [EMAIL PROTECTED] > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]