I’m a bit confused, so any answer that you can come up with that will help me get started to look where the problem is will help.
I have /folder1/API.php using: require_once(‘../folder2/Core.php’);
I then have /folder1/Panel.php using: require_once(‘folder2/Core.php’); (note that there is no ‘..’).
Somehow, both API.php and Panel.php are able to locate Core.php even though they are in the same folder but different require_once parameters.
Even weirder: in /folder2/Core.php, there’s require_once(‘../folder3/DBConfig.php’); in which API.php is able to go through, but when calling a function from Panel.php, it says that I cannot find ‘../folder3/DBConfig.php’.
Require (and include) will search in your include path too, perhaps the folders are included there.