Re: [PHP] MySQL for storing PHP code

2003-02-10 Thread Chris Shiflett
--- 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

Fw: [PHP] MySQL for storing PHP code

2003-02-10 Thread Kevin Stone
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

[PHP] MySQL for storing PHP code

2003-02-10 Thread Daniel Page
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"