title: How to show images in subfolder pages (pages are in PHP)
body: <p>Basically I have a website that I want to put resources and tutorials and whatever else on and I figured in order to do this so its somewhat more organized I'll create some folders. For the sake of this question I'll keep it simple.</p>
  
  <p>On my desktop I have my website folder, which has all my main pages (Index, about, etc.) I have a folder called "Includes" which consists of my header, footer, nav and sidebar. Then I also have a content folder, and inside that is all my main content pages (blends, film reviews, tumblr tutorials, etc.) </p>
  
  <p>Now, I've figured out how to get the CSS to show in these subfolders but my layout image and my social icons in my footer are not showing up in these subfolder pages..</p>
  
  <p>My layout image is in a folder called "homepage" inside a folder called "Images" inside my main folder(the one with EVERYTHING inside) and the social icons are in the same folder, but in another folder called "social icons" </p>
  
  <p>The header.php file located in the includes folder is where my layout image code is. This is the code I'm using to call the header.php file in these subfolders (ex. /content/blends.php)</p>
  
  <pre><code> &lt;?php 
   $path = $_SERVER['DOCUMENT_ROOT'];
   $path .= "/includes/header.php";
   include_once($path);
  ?&gt;
  </code></pre>
  
  <p>Now I do understand why it's not working, or I think I do anyways, because I think it would be looking in the includes folder for the images. </p>
  
  <p>This is also the code I'm using for my footer</p>
  
  <pre><code>&lt;?php include('../includes/footer.php'); ?&gt;
  </code></pre>
  
  <p>So essentially, if I'm correct about why it's not working, my question is, how do I get them to show? </p>
  
  <p>Much thanks in advance.</p>