Path Inclusion/Global variable not working?
- by Dan LaManna
Simply put, my config file includes my database class, and the config file has in it:
global $db;
$db = new database(DB_HOST, DB_NAME, DB_USER, DB_PASS);
That file is root/config.php
Moving on to root/functions/func.newpage.php doesn't have any includes/requires, and uses $db-classfunction since the file I'm working with:
root/newpage.php -…