Hello, I recently decided to port my existing web to a template (haven't decided on EasyTemplate or FastTemplate yet), and I'm running into a small problem. I do not want to completely separate my HTML from my php. What I want is the ability to open a file containing a standard PHP/HTML mix, and evaluate this with the PHP processor, then pass the evaluated code (now pure HTML) into a template.
So far, I have this:
$filename= "include/dvds.inc";
$fp = fopen($filename, "r");
$content = fread( $fp, filesize( $filename ));
fclose( $fp );
now $content contains the entire file (HTML and PHP), but I need to parse it before displaying it. Any help would be greatly appreciated!
Nicholas Leonovich
phphelp@leonovich.net