title: global constants and include path to my CMS pages
body: <p>We have a CMS wich creates  pages (folders with index.php) in file system with unlimited depth.
  Users are able  to add, edit and move the page to levels up/down.
  I am searching for best server independent approach how to set up the include path to start always from the site root (or use with sub root) to call global usable constants of my config.php.</p>
  
  <p>Would like to avoid use of  .htacces or custom php.ini, since i do not know security settings of any server in advance.
  Of course, security matters.</p>
  
  <p>The best available option until now, is to include in each page template top (where wwwmap 
   is web root):</p>
  
  <pre><code>  $doc_root="C:\\wwwmap\\subfolder\\";
    ini_set("include_path", get_include_path() . PATH_SEPARATOR . $doc_root );  
    include_once("sitesetup.php");
  </code></pre>
  
  <p>(where in sitesetup.php, config.php is called and session start)
  Your ideas are greatly appreciated.</p>