Hey, Here's the situation, I have a website with a template in /templates/boringtemplate/template.php the template file is html with <?php echo($title) ?> along the way, normally, to display it dynamically, I just run all the queries, and include("templates/$templatedir/template.php") and it works great, But, I am getting to the stage where my little cms cant be used by some clients due to them not having mysql etc.. I'm trying to figure out how I can generate a static page.. Here is what I've started on.. [code] $filename ="static_$current_page.html"; $myFile= fopen($filename,'a'); if(! $myFile){ print ("File could not be opened."); exit;} fputs($myFile, $string); fclose($myFile); [/code] Thats fine, it will write $string to the desired html file. But.. How Can I get the string to include the answers the the php. In other words, I think I need to execute the php file, and save the result as a html file...