php include /require path specification formats
<p>this is very simple but very confusing most times..</p>

<p>i need to know what it means by when we include files by following patterns (where i have seen in many places may be there is more than this)</p>

<p>What it means ?</p>

<pre><code>"./path" 

"/path"

"../path"

dirname(__FILE__)

basename(dirname(dirname(__FILE__)));

require dirname(__FILE__) . DIRECTORY_SEPARATOR;

pathinfo()

define('BASE_PATH',realpath('.'));

define('BASE_URL', dirname($_SERVER["SCRIPT_NAME"]));
</code></pre>
