Do you have permission on the site to change the extensions with PHP? If so it should be relatively simple to do what you suggested. I mean, can you upload personalised php scripts