FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Using PHP Tags in eval()
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Using PHP Tags in eval() [message #175716] Sat, 22 October 2011 16:15 Go to previous message
Luke23ae is currently offline  Luke23ae
Messages: 2
Registered: October 2011
Karma:
Junior Member
Hi there,

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 it 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-Tag.

Is there a way to still eval Strings that contain PHP-Tags?

Thank you,
Lukas
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: getting a url with a mS timout in PHP < 5.2
Next Topic: execute php in template
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 10 12:03:42 GMT 2024

Total time taken to generate the page: 0.04915 seconds