Quick question, what I'd like to be able to do is store entire webpages in a database, and later pull them out of the database and print them to the screen. Thats fine if the pages stored in the database are entirely HTML.
BUT if they contain PHP, the PHP doesn't get parsed / evaluated.
For instance, my page looks like this:
<title>title page</title>
<head></head>
<body>
Welcome to my page.
My name is <?php print ("$fname $lname"); ?>
</body>
Now, I want to pull that entire bit from a database, BUT the PHP print ("$fname etc etc command has to be evaluated.
The only way I can figure out how to do this is to write the file to the disk, adn then include it. But woouldn't this be a bit inefficient / slow down my pages / put a load on the server?
Is there a better way?