store it as text
when you get it back, do an exec() on it

-----Original Message-----
From: David Redmond [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 04, 2002 3:56 PM
Subject: [PHP] Storing Script information in MySQL

Is it possible to store the contents of a PHP file within a field in a MySQL
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 --


PHP General Mailing List (
To unsubscribe, visit:

Reply via email to