note 79770 deleted from function.eval by felipe
| From: | felipe@php.net | Date: | Sat, 15 Dec 2007 15:29:28 +0000 |
| Subject: | note 79770 deleted from function.eval by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-133569@lists.php.net to get a copy of this message | ||
Note Submitter: Mike
Reason: 1
----
I found an easier way to evaluate HTML and PHP, in my case for storing HTML/PHP pages in a MySQL
database and outputting it correctly.
<?php
$code = "<b>This is a test.<? echo '</b>';?>";
eval('?>' . $code);
?>