title: How to make $_SERVER['DOCUMENT_ROOT'] reference to alias directory path and NOT wamp default path?
body: <p>I currently have my WAMP installation at:</p>
  
  <pre><code>C:/wamp/www/
  </code></pre>
  
  <p><strong>My issue:</strong></p>
  
  <p>When calling <code>$_SERVER['DOCUMENT_ROOT'];</code> from <code>localhost/projectname1/test.php</code> - this outputs:</p>
  
  <pre><code>C:/wamp/www/
  </code></pre>
  
  <p>This is no good since path in my scripts will be wrong then. I this case I want Document root to output (which is my alias path for this dummy project):</p>
  
  <pre><code>C:\Users\SGS\Google Drive\_Work\projectname1\html/
  </code></pre>
  
  <p>All my working files are on google drive, so for each project I create an Apache alias, that points to the direct path of the project located on google drive folder.</p>
  
  <p>Example of an alias created - <code>projectname1.conf</code>:</p>
  
  <pre><code>Alias /projectname1/ "C:\Users\SGS\Google Drive\_Work\projectname1\html/"
  
  &lt;Directory "C:\Users\SGS\Google Drive\_Work\projectname1\html/"&gt;
      Options Indexes FollowSymLinks MultiViews
      AllowOverride all
          Order allow,deny
      Allow from all
  &lt;/Directory&gt;
  </code></pre>
  
  <p>This allow me to call the project with <code>localhost/projectname1/</code></p>
  
  <p>How do I get my document?</p>