title: PHP is including relative to the URL path and not the file path, how do you change this?
body: <p>I have a PHP file /a/b/file.php with the line</p>
  
  <pre><code>require("../connect.php");
  </code></pre>
  
  <p>In connect.php there is a line</p>
  
  <pre><code>require("../config.inc.php");
  </code></pre>
  
  <p>This all works fine on my local server. There are a bunch of files using connect.php and they all work fine too.</p>
  
  <p>However on the hosting site /a/b/file.php throws an error:</p>
  
  <pre><code>Fatal error: require() [function.require]: Failed opening required 
  '../config.inc.php' (include_path='.:/usr/local/php5/lib/php') in
  /******/connect.php on line 3
  </code></pre>
  
  <p>I suspect that even though connect.php is in another folder, it's looking for it relative to /a/b. Is there a php.ini setting to change this?</p>