Awesome. That's EXACTLY what I was looking for. I knew it was something simple 🙂
For future reference though, in case anyone uses the Search button and finds this thread, here's the relevant portion of my code:
<?
$articletext = $postrow["post_text"];
if(substr($articletext, 0, 8) !== "<?php") {
$articletext = "?> " . $articletext;
}
eval(html_entity_decode($articletext));
?>
We're using phpBB to post content to our other pages, and phpBB encodes the HTML characters during posting, hence the "<?php" rather than "<?php". That one also took me a little while to figure out, since it should've worked in theory 😛