--- Daniel Page <[EMAIL PROTECTED]> wrote:
> Would it be possible to store PHP code in a MySQL table,
> then via a web page, connect to the DB, recover the code
> that corresponds to a certain id number, then include
> that code for execution?
Yes, and since your example demonstrates that you know
Check out eval();
http://www.php.net/manual/en/function.eval.php
- Kevin
- Original Message -
From: "Daniel Page" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 10, 2003 2:21 PM
Subject: [PHP] MySQL for storing PHP code
> Hi,
>
> Wo
Hi,
Would it be possible to store PHP code in a MySQL table, then via a web
page, connect to the DB, recover the code that corresponds to a certain id
number, then include that code for execution?
For example (quick, dirty, and untested!):
$sql = "SELECT phpcode FROM phpstorage WHERE codeid = 1"
3 matches
Mail list logo