From the examples I've seen, I don't think eval() works for this, or
if it does, I'm not sure how. Here's the setup. I'm storing web page
content in a database. 95% of the time, all the php takes outside of
the content area, setting up menus and footers, that sort of thing.
But some web pages have php code in the middle.
So I'll have a variable, $content, that looks like this:
$content = "<p>I'm content</p>\n\n<?php print \"hello world\n"; ?>
<p>More content</p>";
How can I get php to execute the code inside the code blocks in the
variable?
Thanks,