title: Is there a way to generate HTML using PHP for validation purposes?
body: <p>What I mean by this is, is I have organized modules and I want to run the PHP output through a w3 validator.  Bascially what you would see in a <code>view source</code> if you were on the page.</p>
  
  <p>My code looks like this:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
    &lt;?php include 'module._TopHead.htm';?&gt;
    &lt;body&gt;
      &lt;?php include 'module._TopBody.htm';?&gt;
      &lt;script&gt;
        &lt;?php include 'object-inline.ArcInit.js';?&gt;
        &lt;?php include 'object-inline.FBInit.js';?&gt;
      &lt;/script&gt;
      &lt;div id="super-1"&gt;
      &lt;/div&gt;
      &lt;div id="mega_wrap"&gt;
        &lt;div id="ultra-1"&gt;
  </code></pre>
  
  <p>In fact I could just copy paste the view source, but I was hoping there was a programmatic way to do this.</p>
  
  <p>Also, this would speed up server response if I could save the file as <code>foo.htm</code> and call it directly.</p>