When I'm running my site it keeps telling me
Warning: require_once(../../functions.inc.php): failed to open stream: No such file or directory in F:\xampp\htdocs\FinalYear\inc\functions\LoginOrRegister.inc.php on line 5
But the file is exactly 2 folders above the file I'm requiring. When I'm doing the following:
set_include_path(dirname(__FILE__)."/../../");
require_once('functions.inc.php');
It works (I don't get an error message for a non-existing file BUT In the functions.inc.php there is a new object created of the database.php.
$db = new database();
I can call this on every other site, just not on my LoginOrRegister.php. It always tells me, that this object doesn't exist, even, when I create it myself in the file. Any help?