title: Why Include path works only without "/" in start?
body: <p>I want <code>index.php</code> to include a <code>footer.html</code> file located in the <code>include</code> folder which is on the same folder where my <code>index.php</code> is located.</p>
  
  <p>I noticed that it wouldn't work if I use:</p>
  
  <p><code>&lt;?php include '/include/footer.html'; &gt;</code></p>
  
  <p>I will get :</p>
  
  <blockquote>
    <p>Warning: include(/include/footer.html): failed to open stream: No such
    file or directory in</p>
  </blockquote>
  
  <p>It will only work if I use:</p>
  
  <p><code>&lt;?php include 'include/footer.html'; &gt;</code></p>
  
  <p>This is confusing because at the same time, I do use the first form to include scripts and images:</p>
  
  <p><code>&lt;script src="/js/script.js"&gt;&lt;/script&gt;</code></p>
  
  <p><code>&lt;img src="/images/logo.jpg"&gt;</code></p>
  
  <p>Btw, is it better to concentrate all included files in a designated folder?</p>