How to parse PHP string containing multiple PHP blocks?
Posted: October 12th, 2012, 8:20 pm
Hi!
I'd like to dynamically run a PHP script that exists in a string. This script is like a view, so it contains multiple PHP blocks inside the PHP tags. This won't work with Eval() and IncludeScript is no option for me as the script is not in a physical file (and I can't write it out to one).
Could you help me how this is possible?
Thank you in advance.
I'd like to dynamically run a PHP script that exists in a string. This script is like a view, so it contains multiple PHP blocks inside the PHP tags. This won't work with Eval() and IncludeScript is no option for me as the script is not in a physical file (and I can't write it out to one).
Could you help me how this is possible?
Thank you in advance.