Re: MySQL for storing PHP code
| From: | Chris Shiflett | Date: | Mon, 10 Feb 2003 21:35:23 +0000 |
| Subject: | Re: MySQL for storing PHP code | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-135118@lists.php.net to get a copy of this message | ||
--- Daniel Page <dlp@dlpage.com> 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 how
to query MySQL, this is all you need:
http://www.php.net/manual/en/function.eval.php
Chris