AW: [PHP] dynamic code
| From: | MMVZSLU) | Date: | Fri, 05 Jan 2001 10:34:54 +0000 |
| Subject: | AW: [PHP] dynamic code | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-32863@lists.php.net to get a copy of this message | ||
sorry for asking an f.a. question. found it myself in the manual comments.
-----Ursprüngliche Nachricht-----
Von: Luescher Samuel (MMVZSLU)
[mailto:samuel.luescher@ch.mullermartini.com]
Gesendet: Freitag, 5. Januar 2001 11:21
An: 'php-general@lists.php.net'
Betreff: [PHP] dynamic code
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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net