title: php: setting root directory for project?
body: <p>i'm having the following url for my test project on my local server:</p>
  
  <pre><code>http://localhost/projects/test/
  </code></pre>
  
  <p>now i'd like to have to have the possibilty of using this as root directory for eg. includes/images - like <code>&lt;img src='/img/test.jpg'&gt;</code> - this way it would save me a lot of time as i could simple put it online without any path modifications/flag.</p>
  
  <p>any ideas how this could work?</p>
  
  <p>thanks</p>