Seems your web server is not configured to treat ".php" files as executables and hence is simply returning them as HTML files.it doesn't pick up that theres any php file with the Couch code in. It's as if the database doesn't see the php? Any ideas?
I think you should contact your web host.