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
Re: Using PHP Tags in eval() [message #175785 is a reply to message #175716] Mon, 24 October 2011 08:30 Go to previous message
Willem Bogaerts is currently offline  Willem Bogaerts
Messages: 8
Registered: September 2010
Karma:
Junior Member
> 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']);

You are aware that you are giving an awful lot of control over your
server away to the first hacker that comes around? I would never do that
on a live server and not even in a private network.

Best regards,
--
Willem Bogaerts

Application smith
Kratz B.V.
http://www.kratz.nl/
[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: Fri Nov 22 22:53:34 GMT 2024

Total time taken to generate the page: 0.04368 seconds