title: relative path in require_once doesn't work
body: <p>I have the following structure </p>
  
  <pre><code>otsg
   &gt; class
     &gt; authentication.php
     &gt; database.php
     &gt; user.php
   &gt; include
     &gt; config.inc.php
     &gt; encryption.php
     &gt; include.php
     &gt; session.php
   &gt; index.php
   &gt; registration.php
  </code></pre>
  
  <p>include.php file has the following </p>
  
  <pre><code>ini_set('display_errors', 1);
  error_reporting(E_ALL);
  
  ini_set('include_path',ini_get('include_path').':/Applications/MAMP/htdocs/otsg/:');
  require_once 'config.inc.php';
  require_once '../class/database.php';
  require_once '../class/user.php';
  require_once 'encryption.php';
  require_once 'session.php';
  require_once '../class/authentication.php';
  </code></pre>
  
  <p>and in the index.php page I had included</p>
  
  <pre><code>require_once 'include/include.php';
  </code></pre>
  
  <p>When I open the page index.php I get the following warning and fatal error. I don't understand what causes this error. When I gave the absolute path it works. But absolute path is not a good idea i believe.</p>
  
  <pre><code>Warning: require_once(../class/database.php) [function.require-once]: failed to open stream: No such file or directory in /Applications/MAMP/htdocs/otsg/include/include.php on line 9
  
  Fatal error: require_once() [function.require]: Failed opening required '../class/database.php' (include_path='.:/Applications/MAMP/bin/php5.3/lib/php:/Applications/MAMP/htdocs/otsg/include/:') in /Applications/MAMP/htdocs/otsg/include/include.php on line 9
  </code></pre>
  
  <p>Thanks in advance</p>