title: require_once ignored
body: <p>strange problem with php on windows... my application loads a 'core' file that loads a settings file, registers autoloads, does initialization etc. at the top of the core file I have include_once("config.php"); this works fine for anything in the current directory, if I include the core file from a separate directory though it just silently ignores the include of the config file... has anyone seen this before?</p>
  
  <p>/webroot/core.php</p>
  
  <pre><code>&lt;?php
    require_once "config.php";
    //register autoloads
    //do some initialization... standard stuff
  ?&gt;
  </code></pre>
  
  <p>/webroot/config.php</p>
  
  <pre><code>&lt;?php
    define("WEB_ROOT","/webroot");
    define("DB_USER","root");
    // ... more stuff...
  ?&gt;
  </code></pre>
  
  <p>/webroot/admin/index.php</p>
  
  <pre><code>&lt;?php
    require_once("../dbconnect.php");
    echo WEB_ROOT;
    // print string literal WEB_ROOT rather than value in config.php
  ?&gt;
  </code></pre>
  
  <p>My understanding is that file operations are relative to the directory of the file making the request, shouldn't the require_once("config.php") select the file relative to core.php? This code works just as I'd expect on a mac or Linux but not at all on windows, (if I change the require to use the full path or ../, it works) </p>
  
  <p>The real madness is that the require_once("config.php") doesn't throw any errors but none of the code inside is executed!</p>