Originally posted by rehfeld
take a look at output buffering
ob_start();
include 'script.php'; // produces html
$output = ob_get_contents();
theres some other ob_* functions you may want to look at too... [/B]
How is that going to help, doesn't that just delay the processing of the code?
Like I said I have the need to do the following:
Take a template, and spit it out into a n executable php script, but I dont want the code in the template (if someone added some php code) to be executable. So lets say the template is like
<html>
%%name%%
<?php
echo "TEST";
?>
I want the php stuff to not be processed at all. I don't want it processed when I process the template , or when it is sent to the final output code which will be parsed via php as well. I only want my custom tags (%%name%%) parsed by my code and thats it to keep people from adding insecure code or code to hack the server to the templates.
Thanks.