How do you include a file that is more than 2 directories back. I know you can use ../index.php to include a file that is 2 directories back, but how do you do
../ is one directory, Repeat for two directories ../../ or even three: ../../../ and so on.
Defining constants may reduce confusion because you will drill forward into directories verses backwards
You could define some constants like so:
define('BD', '/home/user/public_html/example/');
define('HTMLBD', 'http://example.com/');
When using 'BD' or my 'base directory' it looks like so:
file(BD.'location/of/file.php');
define(); reference