Apache Web-Serving With Mac OS X, Part 5
Subject:   php
Date:   2002-03-11 16:41:22
From:   morbus
Response to: php

I think something's missing from your comment, but the example listed in the article is a full script - if you save it as with a .php extension, then you'll be able to run it just fine.