I enabled php in all my templates so that I could use a ratings system plugin (which works fine if I use it in a separate index.php test page that is not an EE template). To get the plugin to work, I have to add <?php require(‘_plugin.php’); ?> at the top of the page and then <?php echo function(); ?> in the part of the page that I want to execute the plugin function.
For some reason, when I do this in an EE template, the template loses all CSS style as well as the {embed} function. This happens whether I run php on input or output. Any ideas?