Including files using relative paths with PHP?
<p>When developing my website I called all the includes in my php files by calling one single file called includes.</p>

<p>The code of this file looked somethig like this: (I adapted it from a Lynda tutorial)</p>

<pre><code>defined('DS') ? null : define('DS', DIRECTORY_SEPARATOR);

defined('SITE_ROOT') ? null :
    define('SITE_ROOT', 'C:'.DS.'wamp'.DS.'www'.DS.'ArmyCreator');

defined('LIB_PATH') ? null : define('LIB_PATH', SITE_ROOT.DS.'includes');
defined('PUB_PATH') ? null : define('PUB_PATH', SITE_ROOT.DS.'public');


// load config file first
require_once(LIB_PATH.DS."helper".DS.'config.php');
</code></pre>

<p>Now since I am deploying my webiste I can't figure out how to declare the SITE_ROOt to make it work properly?</p>

<p><strong>EDIT</strong></p>

<p>Is it normal for  code like this: <code>require_once("../../includes/helper/initialize.php");</code> to not work anymore once I deploy to the website?</p>
