dynamic code
| From: | MMVZSLU) | Date: | Fri, 05 Jan 2001 10:20:30 +0000 |
| Subject: | dynamic code | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-32862@lists.php.net to get a copy of this message | ||
imagine having a database to which chunks of php code (among plain text) are
submitted. how can i actually read this code from the database and then
execute it within one script?
the main problem is that i want to output plain text/html mixed with php.
say, i have a field in my database containing html docs that can optionally
contain php code. in this case, eval($body) produces parsing errors. do i
have to parse them myself first and alternately eval() the php parts?
tia, sam