title: Handling relative paths for include files in PHP
body: <p>I am doing a project in PHP which I am not very familiar. I am using a MVC framework (CodeIgnitor). I have noticed that each time I return a view that resulted from a longer/shorter url string all of my includes break. It appears that the paths are relative to url.</p>
  
  <p>Is $_SERVER["DOCUMENT_ROOT"] the best way to generate include paths in PHP?</p>
  
  <p>Thanks!  </p>