title: path relative to document root in PHP
body: <p>Hi im using XAMPP to host a site locally.</p>
  
  <p>The DocumentRoot is as follows: <code>DocumentRoot "D:/xampp/htdocs"</code>
  The siteDir is in the htdocs folder and has a php folder underneath is.</p>
  
  <p>I am trying to use php <code>fopen</code> with a file relative to the site root <code>(D:/xampp/htdocs/site)</code> as follows: <code>$log = fopen("/log.log", "a")</code> however this is creating the file log.log in <code>D:/log.log</code></p>
  
  <p>Any ideas why this is creating in D:/ ( I would have expected / to be web root relative)</p>
  
  <p>Many Thanks</p>