How to parse PHP string containing multiple PHP blocks?
3 posts
• Page 1 of 1
How to parse PHP string containing multiple PHP blocks?
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.
- Piedone
- Posts: 11
- Joined: October 12th, 2012, 7:30 pm
Re: How to parse PHP string containing multiple PHP blocks?
can you post an example of what you mean?
- dbuerer
- Posts: 7
- Joined: September 5th, 2013, 3:24 pm
Re: How to parse PHP string containing multiple PHP blocks?
Wow that was a long time ago .
What I meant was the the ability to parse a string with PHP code that contains multiple PHP blocks like this:
<?php
blabla
?>
...
<?php
blabla
?>
What I meant was the the ability to parse a string with PHP code that contains multiple PHP blocks like this:
<?php
blabla
?>
...
<?php
blabla
?>
- Piedone
- Posts: 11
- Joined: October 12th, 2012, 7:30 pm
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 14 guests