why would you want to do that? can you give me a little more detail about the application? -alex -- Alex Black, Head Monkey [EMAIL PROTECTED] The Turing Studio, Inc. http://www.turingstudio.com vox+510.666.0074 fax+510.666.0093 Saul Zaentz Film Center 2600 Tenth St Suite 433 Berkeley, CA 94710-2522 > From: [EMAIL PROTECTED] ("Luescher Samuel (MMVZSLU)") > Newsgroups: php.general > Date: 5 Jan 2001 02:19:03 -0800 > Subject: [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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]