Welcome Guest, Not a member yet? Register   Sign In
How to execute php in string?
#9

[eluser]rogierb[/eluser]
Well, I think finally found it.

Code:
$string = "I am an <?php echo 'idiot'; ?>";

echo eval ($string);
did not work.

But after some random typing and testing (with forehead ramming keyboard)

Code:
$string = "I am an <?php echo 'not that big an idiot'; ?>";

echo eval ("?>".$string);

Did the trick.

Thanx y'all!


Messages In This Thread
How to execute php in string? - by El Forum - 01-28-2008, 08:11 AM
How to execute php in string? - by El Forum - 01-28-2008, 08:17 AM
How to execute php in string? - by El Forum - 01-28-2008, 08:21 AM
How to execute php in string? - by El Forum - 01-28-2008, 08:23 AM
How to execute php in string? - by El Forum - 01-28-2008, 08:25 AM
How to execute php in string? - by El Forum - 01-28-2008, 08:30 AM
How to execute php in string? - by El Forum - 01-28-2008, 08:37 AM
How to execute php in string? - by El Forum - 01-28-2008, 08:47 AM
How to execute php in string? - by El Forum - 01-28-2008, 09:04 AM
How to execute php in string? - by El Forum - 01-28-2008, 09:26 AM
How to execute php in string? - by El Forum - 01-28-2008, 09:38 AM
How to execute php in string? - by El Forum - 01-28-2008, 10:07 AM



Theme © iAndrew 2016 - Forum software by © MyBB