title: php include gives error
body: <p>I am beginner in php, trying to make one main.php file that incldes header and footer for the start</p>
  
  <h3>header.php</h3>
  
  <pre><code>&lt;html&gt;
  &lt;body&gt;
  &lt;div class="header"&gt;
  logo, navigation etc
  &lt;/div&gt;
  </code></pre>
  
  <h3>footer.php</h3>
  
  <pre><code>&lt;div class="footer"&gt;
  Footer content here
  &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <h3>and the main file</h3>
  
  <pre><code>&lt;?php include "header.php"; ?&gt;
  &lt;div class="main content"&gt;
  &lt;h1&gt; header &lt;/h1&gt;
  &lt;p&gt; paragraph &lt;/p&gt;
  &lt;/div&gt;
  &lt;?php include "footer.php"; ?&gt;
  </code></pre>
  
  <h3>the errors:</h3>
  
  <pre><code>Warning: include(header.php): failed to open stream: No such file or directory in - on line 1
  Warning: include(): Failed opening 'header.php' for inclusion (include_path='.:') in - on line 1
  
  Warning: include(footer.php): failed to open stream: No such file or directory in - on line 6
  Warning: include(): Failed opening 'footer.php' for inclusion (include_path='.:') in - on line 6
  </code></pre>
  
  <p>all files are in the same foler and doing it on XAMPP</p>