articles

I wrote a number of articles about web development. These articles were first published by evolt.org or SitePoint. Some articles were then republished by DevArticles and the UK Webdesign Company.

Voor Nederlandstaligen is er nu ook een artikel in het Nederlands. Dat artikel is eerder verschenen op PHPen.nl.

Storing Hierarchical Data in a Database

[en] Whether you want to build your own forum, publish the messages from a mailing list on your Website, or write your own CMS: there will be a moment that you'll want to store hierarchical data in a database.

Using PEAR's mimeDecode module

[en] In this article, we will explore the mimeDecode module of PEAR to see how we can easily decode MIME email.

Cache-vriendelijke pagina's in PHP

[nl] In de meeste gevallen zul je niet willen dat de browser de uitvoer van je PHP-scripts in de cache opslaat. Het moet gewoon iedere keer weer worden opgevraagd. In sommige gevallen is het echter beter om de browser wel te laten cachen. Bijvoorbeeld als je PHP een plaatje laat verkleinen. In dat geval zul je de browser een beetje moeten helpen, zodat het plaatje wel wordt opgeslagen in de cache.

PHP frontend to ImageMagick

[en] In this article, we will write a script to connect ImageMagick to PHP. You can then generate thumbnails and other versions of your images on-the-fly, by just editing the url.

Incoming Mail and PHP

[en] We all know how to send email from PHP. Actually, it's quite easy: mail("to@me", "Hello", "Hello"); Handling mail the other way, sending email to PHP is a task much more unknown. In this article, we will write and install a script that we can send an email to.

Storage and re-use of images using PHP/GD - Part 1

[en] Publishing images on the web is nice, but tedious. It would be nice if we could use a system that automates the uploading, storage, converting and resizing of our images. We could feed that system our images once, and retrieve them later in many different formats. In this article, we will write some scripts that come close to this ideal system. PHP and the GD-library will provide us with an easy method of uploading, searching and publishing our images.

Storage and re-use of images using PHP/GD - Part 2

[en] (This article is a follow-up to part 1.)

Automated Creation of Thumbnails With PHP

[en] When using a Content Management System, it would be easy if you could just upload images, without having to worry about file type and image size. Thumbnails are created on the fly, images are automatically converted to the right file type. With PHP and the GD library, it is very easy to build a script that performs these tasks.