Can't render output to screen using PHP?
<p>I have the following scenario. </p>

<p>I have a PHP website witch contains about 3 webpages with dynamic content. I want to render this to static content to another file. Eg. contact.php -> contact.html</p>

<p>My code looks like this</p>

<pre><code>ob_start();
$content = require_once 'contact.php';
ob_end_flush();
file_put_contents("contact.html", $content);
</code></pre>

<p>Somehow this is not working ;-?(</p>
