title: Issues with php require and file path
body: <p>I have a website using php, html and css. Since some of the content will be repeated numerous times on the pages, I have created a seperate file which contains the code that's being repeated. I am then refering to this file from all the pages I need by using     </p>
  
  <pre><code>require('page.html')
  </code></pre>
  
  <p>The problem now is that I have pages in folders and subfolders, and if I refer to the pages like above, it wont show the content since it can't find "page.html" anymore. I fixed this by changing it to: </p>
  
  <pre><code>require('../page.html')
  </code></pre>
  
  <p>However that ain't enough since a lot of the content on "page.html" now uses paths that doesn't work anymore like images. Is there a better way to do this? Or will I have to live with a single folder containing 50 files to avoid dubplicated code?</p>
  
  <p>Thanks in advance.</p>