Archive for July, 2008

Geolocate your visitors with PHP (part 2)

In the first part of this series I showed how you could get the country of a visitor via his IP address. Now with this precious information, I’ll show you how to map the visitor visually on the world map using Google Maps.
Sample preview.

SEO friendly URL in PHP

When I started implementing mod_rewrite in websites I had a problem in PHP as how to make a SEO friendly URL. All tutorials were geared towards how to implement mod_rewrite, about modifying .htaccess files, but none treated how to make the urls friendly with dynamic content. For example I have a news section which are [...]

Expanding/collapsing javascript menu

In this post I’ll show you how to create an expanding/collapsing menu like Slashdot left menu used to be, using the YUI library and Dav Glass YUI effects widget.
Preview of the script we are going to build.

YUI-based numeric stepper widget

Since I had some problems with YUI slider, I decided to write a YUI-based numeric stepper that allows users to select values within a predefined range.

Geolocate your visitors with PHP (part 1)

In this short post I’ll show you how to geolocate your visitors with PHP. First of all let’s have a look at what you’ll need :

PEAR GeoIP
MaxMind GeoLite Country

HTML entities within XSL

You want to have
 
in your XSL stylesheet but you’re getting an error, just put these few lines of code at the top, before the
<xsl :stylesheet…></xsl>
tag :

10 starting signs of a good web developer (php version)

Nowadays many people call themselves PHP programmers / web developers as soon as they know a bit of Frontpage or using Dreamweaver to generate the code for them. But are they really good web developers? Here’s my top 10 characteristics of good web developers, feel free to comment.