Helping ordinary people create extraordinary websites!

Effective Geotargeting with PHP

By Akash Mehta
2008-01-27

Introduction
In this tutorial, we'll take a look at the technique of geotargeting, or serving content to users based on their physical location. The technology is invaluable; with simple techniques, you can target advertising to specific users, collect more accurate usage statistics, serve content in different languages for different regions and provide local information like weather reports to your visitors. I'll briefly cover what you need to know about geoip, and then move on to some code samples of how to achieve it with the Maxmind database, using both the standard PHP library and the PEAR version.


Tutorial pages:

 3 Votes

You might also want to check these out:


Leave a Comment on "Effective Geotargeting with PHP"
You must be logged in to post a comment.

Link to This Tutorial Page!


GET OUR NEWSLETTERS