PHP:include file
<p>I have a DB file content my DB info. the file db.php located on my mother's folder [here apps folder]. Now, how can I include the db.php file anywhere on the project using <code>base_url()</code>? Here is my base url function:</p>

<pre><code>function base_url() {
    return "http://localhost/apps";
}
</code></pre>

<p>I tried like this way but it does not work.</p>

<pre><code>$link=base_url()."/"."db.php";      
include('$link');
</code></pre>

<p>Can anybody please help></p>

<p>Thanks
riad</p>
