I'm having trouble executing stored PHP code. I have a number of templates (parsed into an intermediary language (straight PHP) from a tag-based custom syntax), and I'm trying to store in a string and echo their executed values.
I thought I could do this:
eval('?>' . $template . '<?php');
No luck. 🙁 (Though I seem to remember having done that successfully in the past.)
Anyway, any suggestions? Thanks! 🙂