title: Define absolute path for files
body: <p>I have the following include files..</p>
  
  <pre><code>require_once ("config.php");
  require_once ("functions.php");
  require_once ("session.php");
  </code></pre>
  
  <p>I want to define absolute paths for my include files. I have tried with the following code and no luck..</p>
  
  <p>can you please help to define an appropriate absolute path, so that require_once as expected.</p>
  
  <pre><code>    defined('DS') ? null : define('DS',DIRECTORY_SEPARATOR);
      defined('SITE_ROOT') ? null: define('SITE_ROOT',DS.'PHP_Files'. DS . 'phpsandbox'. DS.'my_mat'. DS.'my_test');
      defined('LIB_PATH')?null:define('LIB_PATH',SITE_ROOT.DS.'includes');
  
      require_once(LIB_PATH.DS."config.php");
      require_once(LIB_PATH.DS."functions.php");
      require_once(LIB_PATH.DS."session.php");
  </code></pre>
  
  <p>These 3 include files in my system are stored in J:\PHP_Files\phpsandbox\my_mat\my_test\includes.</p>
  
  <p>Thanks in advance!</p>