I'm working on a site that's structured a lot like Everything2: content in a database that's navigated through a php file that serves as a template for each page. Fairly easy stuff. The pages in the database have their own html; the php is mainly a shell for selecting and navigating nodes.
What I want to do is store pages that can include their own php code, and have that code evaluated. It should act just like I'm using include() on a file - an html page with php embedded. Currently, I'm using a straight MySQL query to retrieve the data and echo it.
In perl, I'd use something like an eval statement. How do I get the same effect with php?