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 base_url()? Here is my base url function:
function base_url() {
return "http://localhost/apps";
}
I tried like this way but it does not work.
$link=base_url()."/"."db.php";
include('$link');
Can anybody please help>
Thanks riad