title: PHP include - failed to open stream: No such file
body: <p>I wrote a website in HTML but then I wanted the header and navbar portion in one file so I just had to change it once.  I changed all the pages to .php and added the php includes. However now I get an error on pages that I've put in folders so I could create cruftless links.</p>
  
  <p>Header file: <code>/test/assets/header.php</code></p>
  
  <p>Works: <code>/test/index.php</code> contains <code>&lt;?php include 'assets/header.php'; ?&gt;</code></p>
  
  <p>Throws Error: <code>/test/company/index.php</code> contains <code>&lt;?php include '/test/assets/header.php'; ?&gt;</code></p>
  
  <p>Error: </p>
  
  <pre><code>Warning: include(/test/assets/header.php) [function.include]: failed to open stream: No such file or directory
  
  Warning: include() [function.include]: Failed opening '/test/assets/header.php' for inclusion (include_path='.:/usr/local/lib/php:/usr/local/php5/lib/pear')
  </code></pre>
  
  <p>I am having an issue linking to the header file that is in a folder in the root folder. I believe it is a simple issue of just not knowing how to input the URL.  If I attempt to include the full path to the header.php I get a <code>URL file-access is disabled</code> error</p>