How to force Apache to parse all files in a given directory with PHP

Add the following to an .htaccess file in that directory:

SetHandler application/x-httpd-php

Or add the following to your Apache conf:

<Directory "/path/to/directory">
        SetHandler application/x-httpd-php
</Directory>

And now, back to our regularly scheduled programming…