dirname(__FILE__) VS setting global variable to directories
<p>what are the pros and cons of using this :</p>

<pre><code>$globals['server_url'] = dirname(__FILE__);
$globals['mainfiles'] = dirname(__FILE__).'/main';
</code></pre>

<p>and the pros and cons of using this :</p>

<pre><code>$globals['server_url'] = '/srv/www/htdocs/somwhere/';
$globals['mainfiles'] = '/srv/www/htdocs/somwhere/main';
</code></pre>

<p>And what do you suggest.</p>

<p>by the way: these are set in config.php file which is called by other files as well, to stop directory conflicts when including files we use it like this :</p>

<pre><code>require_once($globals['server_url'].'/test.php');
</code></pre>
