Fresh PHP news, tutorials, tips and much more

Posts Tagged ‘ip’

Where lives my visitors?

Thursday, May 15th, 2008

Do you ever wonder from where your visitors comes from? Mind Tree posted new article how to track your visitors country.

Sometimes you just need to know what country your site visitors are coming from—for example, if you’re trying to implement geo-targeted advertising. This article will show you how.

Article describing usage of geoip class with nice examples of code.

Post tagged with: , , ,

Posted in Advanced, Beginners | No Comments »

Detecting timezone by visitors ip

Tuesday, May 6th, 2008

Skien in his blog added great update of how to detect visitors timezone by his ip address. I think this is very important for international sites, portals or forums, where user is often confused when time is different on site and on his computers clock.

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. I’ll try to explain for each of them why not, but first of all it is important to know what a timezone actually is.

In this article you will find example of how you can integrate this trick to your site, forum, portal or even blog.

Post tagged with: , , ,

Posted in Advanced, Beginners | No Comments »