I'm trying to get eval to work in the following environment...
but am having problems... Is this even possible?
<?php
$test = "<table><tr><td>Hi ";
$test .= "<?php for ($i=0; $i<5; $i++)\n";
$test .= "{print $i;}?>\n";
$test .= "</td></tr></table>";
$t = eval($test);
print $t;
?>
I'm getting an error:
Parse error: parse error in /home/my_domain/public_html/release/index.php(28) : eval()'d code on line 1
FYI, the test is actually retreived from a DB.
Thanks,
Brian