Hm...
YOU must have your server to parse ALL files as PhP, which is a bit of server-load intense..
He will have it set to only .php files.
In the apache config, look for AddHandler
Better would be to keep it all in .php
You could always have your server rewrite rotate.jpg to rotate.php, if you really do not want them to see php. (Why is that, I wonder)