You are here: Re: detecting user's timezone « PHP Programming Language « IT news, forums, messages
Re: detecting user's timezone

Posted by Lars Eighner on 07/08/07 16:23

In our last episode,
<16ed3bff4e.Kevin@talktalk.net>,
the lovely and talented Kevin Wells
broadcast on comp.lang.php:

> In message <1183764307.320942.152330@z28g2000prd.googlegroups.com>
> newbie <mitbbsmj@yahoo.com> wrote:

>>Hi,
>>
>>I wonder if it's possible to detect a user (the browser's) timezone
>>when he/she access my php file? I saw ppl suggesting using javascript
>>to collect that information. But I wonder if it's possible to do it
>>without the headache of javascript.
>>

> Would it not be possible to do this from their IP address?

You could probably beat outright guessing in that way, but there is no
reliable relationship between IP and geography, no necessary relationship
between the IP making the request and the user's actual IP at any given
moment, and again no necessary relationship between the user's actual IP at
any moment and geography.

You might get it right most of the time, but you will get it wrong a
significant part of the time, and in some cases you'll get it wrong in an
absurd way --- such as claiming the page was last updated some time in the
future.

--
Lars Eighner <http://larseighner.com/> <http://myspace.com/larseighner>
Countdown: 561 days to go.
Friends of Lizbeth: help replace failed a/c at Austin's no-kill shelter
<https://secure.groundspring.org/dn/index.php?aid=12349>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация