Monthly Archives: April 2004

A banner script

Recently i wrote a banner system that displays different banners based on the visitor’s country. It uses the remote address to find the country associated with that address (using geoip), and then it looks in the database to find a url for that country. If there is no such url, it looks up the default url. And finally it redirects the visitor to the url.

Parsing XML

Today i wrote a little program, VolumeMeter which is usefull for Scarlet customers. It queries mijn.scarlet.be and returns how many megabytes they have used this month.