I have a textarea where you can write PHP & HTML (or technically
anything else). You can preview your Code in the browser by submitting
the form and what I wanna do is eval() the code (and thereby display)
it. Now eval doesn't seem to accept PHP-Tags (<?php ?>) in the
given string. I've read many posts that suggest calling eval like
eval(' ?>'.$_POST['markup']);
But that my have worked once, but it doesn't work anymore. I get a Syntax error for the lines where there's a PHP opening / closing tag.
Is there still a way to eval() strings that contain PHP opening and closing tags?