Confused with PHP Include
<p>What the different between <code>./</code> vs <code>../</code> vs <code>/</code></p>

<p>I'm very confused, i tried to access PHP class in different level folder.</p>

<p>I have the following folder structure in <code>webdir/asia/v1</code>:</p>

<pre><code>+db
  class.database.php
  config.database.php
  +model
    Application.php
text.php
</code></pre>

<p>In <code>class.database.php</code>, I want include <code>config.database.php</code> which is in the same folder.</p>

<p>In <code>Application.php</code>, I want include <code>class.database.php</code> which is in the level above.</p>

<p>In <code>text.php</code>, I want include <code>Application.php</code>.</p>

<p>How do I include correctly?</p>

<p>What I know for now is that to include files in the same folder, I can use this:</p>

<pre><code>include('config.database.php');
</code></pre>

<p>What about the other two variations? I tried in <code>Application.php</code> to include <code>class.database.php</code> like this :</p>

<pre><code>include_once('../class.database.php');
</code></pre>

<p>but it doesn't work. </p>
