Add: PHP files from David Mundy. Need to be tested!