I have a variable like $str.
$str content is a php file Mixed some html. I want to include this $str to some php file.
Now I first make a file like aa.txt (content is $str) then include this file.But build a file is slowly and not the best way.
Anyother way to include this $str? (PS:the variable have some str like <?php echo $abc ?> so , you know...)
Problem about include some $str
Moderator: General Moderators
Re: Problem about include some $str
I will rot in hell for suggesting this, but you could use eval().
In an effort to save my soul, is there a chance you can change the system so that this code is stored in a file instead?
Code: Select all
eval("?>" . $str);Re: Problem about include some $str
Thanks for you suggestion. I will try.