Added the PHP file.

I know the code in this is very very bad.  It works as it's supposed to,
though.  (If you ignore the error messages...)