title: Getting root of site
body: <p>I've been struggling with this for quite a while now.</p>
  
  <p>At my office, when we work with websites. we have a domain like this: <a href="http://www.domain.com/" rel="nofollow">http://www.domain.com/</a> each website is then stored here but within a subdirectory like so: </p>
  
  <pre><code>http://www.domain.com/dev1/ 
  http://www.domain.com/dev2/
  </code></pre>
  
  <p>.. and so forth. Those pages are after completing their development, being moved to another website. My problem is, at the development stage i would like to be able to use some PHP command that would refer to that sites root dir, for paths etc.. In other words, if im developing a stylesheet in the directory of <code>/css/style.css</code> on the site of <code>http://www.domain.com/dev2/</code> i would like somesort of php command i can write so that it would refer to that sites root like this <code>$_SERVER['SOME_COMMAND']</code>."/css/style.css"</p>
  
  <p>Is this even possible ? </p>