title: PHP require problem with "./"
body: <p>I have a file index.php in root directory:</p>
  
  <pre><code>&lt;?php
  require_once "./include/common.php";
  ?&gt;
  </code></pre>
  
  <p>and file common.php in include folder:</p>
  
  <pre><code>&lt;?php
  require_once "globalConfig.php";
  ?&gt;
  </code></pre>
  
  <p>file globalConfig in the same folder with common.php. The tree folder as:</p>
  
  <p>xxx/index.php</p>
  
  <p>xxx/include/common.php</p>
  
  <p>xxx/include/globalConfig.php</p>
  
  <p>index.php run normally. But if I change file common.php as:</p>
  
  <pre><code>&lt;?php
  require_once "./globalConfig.php";
  ?&gt;
  </code></pre>
  
  <p>PHP show a warning that it cannot find the globalConfig.php file. What is the difference? I think int the case with "./", the most outside including file (index.php) will find the globalConfig.php in its current directory.</p>