Don’t call me DOM

Home

10 March 2006

Doing HTTP caching in PHP

Filed under:

Since the Mobile Web Best Practices highlights that caching is a particularly important feature when browing the Web on a mobile device, I just wrote a new associated technique on how to do proper caching when using PHP.

While Mark Nottingham’s excellent tutorial on the topic covers most of it already, the technique provides some additional code example, as well as some illustration as how to use it with MySQL.

Nothing ground breaking, but I’ve been using this code in most of my PHP applications over the past years, and it certainly gives a nice and warm feeling of being a good HTTP citizen when you pass the Cacheability validation.

19 January 2006

Area-selector for Google Maps

Filed under:

As a follow-up on my geographical site map generator, I’ve coded up a very simple system that allows to navigate on a Google Map by area; although Google Maps are really pretty fun to use, I find that getting an overview of a well-defined area (country, continent, etc) takes quite too much effort by default.

So, after having looked up data for the areas the most relevant to my map, I wrote a simple area-selector as follows:

18 January 2006

Geographical site map

Filed under:

Inspired by MaxF’s recent cool photomap hack, I wrote my own version of the tool that works in a more general case: basically, you feed it with an XHTML page, and it will spider any other page linked from that page and extracts GeoURL data from them, and put them in a javascript file. When this javascript is called from an HTML page, it inserts a Google Map with markers for the various pages.

See how it looks on my personal site:
Screenshot of a page rendered using this tool

« Newer entriesOlder entries »

Picture of Dominique Hazael-MassieuxDominique Hazaël-Massieux (dom@w3.org) is part of the World Wide Web Consortium (W3C) Staff; his interests cover a number of Web technologies, as well as the usage of open source software in a distributed work environment.