title: Using $_server['document_root'] on localhost/the wild web
body: <p>On my WAMP setup, I'm using <code>$_server['document_root']</code> in a number of filepaths..
  I had been using a static <code>$ROOT</code> variable, but thought it would be nice not to have to edit that constant when uploading the site.</p>
  
  <p>Unfortunately, on my WAMP setup, <code>$_server['document_root']</code> is being defined as <code>'C:/wamp/www/'</code> and none of the links seem to be working under WAMP on Windows (though they were fine on MAMP on Mac when I initially made the change). It's looking in <code>file:///C:/wamp/www</code>.</p>
  
  <p>I had read an article that was espousing the virtues of document_root for security reasons and ease of use. Is it really recommended, though? It occurs to me that it could be something different depending on the installation.</p>
  
  <p>I'm thinking of just defining the document_root variable, but now I'm wondering whether it's reliable to use the variable at all.</p>