title: Performance with PHP reading
body: <p>I actually ran into a problem today. I have got a site where multiple pages have the same layout. Today I had to change a thing on this layout and had to change every single page. This made me think about solutions for this. </p>
  
  <p>So, my question: 
  Would the performance and loading speed of the website be affected if I had the layout HTML in  one single file and read it using PHP on every page? This would make it a lot easier for me, since I only had to change the layout in that single file. 
  Also, how should I read this file. At the moment, I would use the following code:</p>
  
  <pre><code>for ($count=0; $count &lt; $dirAmount; $count++) { 
      $path = " //path\\ ";
      $fileText = split("--", file_get_contents($path));
      echo " //code\\ "
      unset($fileText);
  }
  </code></pre>
  
  <p>But would there be a faster way?</p>
  
  <p>BTW, if this is too trivial, please note. I couldn't find much other information that actually was clear enough to help.</p>