title: PHP include best practices question
body: <p>I have been learning syntax for PHP and practicing it.  I come from a .NET background so masterpages always made things pretty easy for me when it came to headers and footers. </p>
  
  <p>So far I have a mainHeader.php and mainFooter.php  which have my head menu and my footer html.  I created a mainBody.php and at the top I put </p>
  
  <pre><code>&lt;?php include "mainHeader.php" ?&gt;
  </code></pre>
  
  <p>and for the footer I put </p>
  
  <pre><code>&lt;?php include "mainFooter.php" ?&gt;
  </code></pre>
  
  <p>This worked perfectly and made me smile because my pages all came together nicely.  the mainHeader has my <code>&lt;html&gt;</code> and <code>&lt;body&gt;</code> and my mainFooter has my closing tags for those. </p>
  
  <p>Is this good practice?</p>