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

[eluser]Craig A Rodway[/eluser]
The string of code passed to eval() must be just PHP code - no PHP tags and no plain-text.

If you have control over the string and it must contain some non-PHP sections, I'd recomment using your own delimeters to denote the PHP section and using some string functions to extract it and run that through eval().


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