News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Derick Rethans' Blog:
Detecting Timezone By IP
May 07, 2008 @ 11:15:24

Derick Rethans has posted a method he's come up with to try to figure out the user's timezone based on the IP address they're using:

Through Planet PHP I found an article on Pre-populating forms with the timezone. I'd normally add a comment instead, but the comment would almost be larger then the original post, so I am instead writing up an entry myself. The post describes several ways to obtain the user's timezone and use that to pre-fill a form. None of them are working properly though.

In Derick's method combines a bit of Javascript with some PHP to correctly find the timezone.

0 comments voice your opinion now!
detect timezone ipaddress maxmind goeonames ip2location


blog comments powered by Disqus

Similar Posts

Derick Rethans' Blog: Detecting Timezone By IP

PHPFreaks.com: Protecting php applications with PHPIDS

Derick Rethans' Blog: Detecting Timezone By IP

DeveloperTutorials.com: Effective Geotargeting with PHP

Derick Rethans' Blog: Detecting Timezone By IP


Community Events

Don't see your event here?
Let us know!


unittest wordpress library opinion podcast interview feature laravel release voicesoftheelephpant laravel5 introduction extension api community series threedevsandamaybe language framework development

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework