Jon Haworth

PHP


I do a lot of work in PHP, which is definitely the most elegant language I've found for web-based apps, despite rudy's attempts to persuade me that ColdFusion is the way to go ;-) I also help out on various mailing lists and find I'm posting the same sort of code over and over again - hence this page, where I can get away with only posting code snippets once.

A note on comment style: Every line of this code is commented. I don't recommend this as a standard practice (I prefer the "state your intentions before you begin, then clarify anything obtuse as you go" school of thought), but it seems to reduce the number of questions I get.


Code snippets

Assorted bits and pieces of code, which you are free to use as you wish.


If you find any of this useful, or you have problems running it, please let me know. It makes a change from the spam :-)

Photo