Storing Script information in MySQL
| From: | David Redmond | Date: | Mon, 04 Mar 2002 04:55:30 +0000 |
| Subject: | Storing Script information in MySQL | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-87031@lists.php.net to get a copy of this message | ||
Is it possible to store the contents of a PHP file within a field in a MySQL
table?
When the contents are retrieved, can they be executed by the PHP parser as
if it were part of the actual PHP file?
ie: have the following stored in the DB;
-- snip --
<?
echo "This is a test.<br>\n";
?>
-- snip --
Then run a PHP script to retrieve that from the DB and have below outputted
to the browser?
-- snip --
This is a test.<br>
-- snip --
Cheers