Ways to use php includes with absolute paths?
<p>I'm trying to use absolute paths for php includes.</p>

<p>Right now I'm trying to do it like this:</p>

<pre><code>include($_SERVER['DOCUMENT_ROOT'].'/sitefolder/apis/db.php');
</code></pre>

<p>but it doesn't work since my site is not pointing to the root folder so I need to add a /sitefolder.</p>

<p>Is there a way to bypass this producing an absolute URL? Or is there a way to permit absolute URLs including?</p>
