Re: database with php code
| From: | Andrey Hristov | Date: | Fri, 07 Dec 2001 19:44:51 +0000 |
| Subject: | Re: database with php code | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-77073@lists.php.net to get a copy of this message | ||
strip the <? and ?> from the strings and do
eval();
HTH
Regards,
Andrey Hristov
----- Original Message -----
From: "Sergio Mergen" <smergen@viavale.com.br>
To: "php List (E-mail)" <php-general@lists.php.net>
Sent: Friday, December 07, 2001 9:39 PM
Subject: [PHP] database with php code
Hello
in my database i have records that contain php code.
i want to put these content on a php file.
Here´s the problem:
Suppose the content returned from the Db is:
$codeFromDB = "<?do some processing?>";
if i do:
echo $codeFromDB;
i´d be writing the content to the returned html file, bu i´d like
the content to be processed by php. I suppose "echo" is not the way to do it..
So.... what can i do??
thanks for your time
Sérgio Mergen
Web developer VIAVALE Internet