Unlike using include, which executes the included php in the file ... is it possible to save the contents of the php file in a variable - but with php still intact and executable?
My goal is something like this:
$template = some_imaginary_include_function('myfile.php'); foreach($list_of_blogs as $blog) {
I know this is a dumb example ... but I hope this illustrates the general idea. If I need to go through the template 50 times on the page (let's say this is a list of blogs), it seems that it does not work and turns on for everyone.
Am I really wrong? Is there any way to do this?
include php
johnnietheblack
source share