Well, I am still very confused how this is possible. Look at the following two lines of code:
Code on Connection.php in class folder:
require_once '../config/constants.php';
require_once dirname(__DIR__).'/config/constants.php';
The second works totally fine, but the first throws the error of:
No such file in ...... on line... in Connection.php
It's getting on my nerves, what is the difference between the two? In my years of programming, I never encountered such problem? Am I missing some points?
If you have any documentation you would like to offer then provide. I would like to have a good foundation of knowledge than just solving problem.
Directory Structure: