I have edited Apache so that my document root is here:
But now I want to point to a file that is inside the
Normally I could use:
include($_SERVER['DOCUMENT_ROOT'] . '/Controllers/MyFile.php');
But that won’t work with this new document root. So, without changing my document root, how can I point back to a folder that is in this path:
../ to up one directory.
include($_SERVER['DOCUMENT_ROOT'] . '/../Controllers/MyFile.php');
Answered By – Al Amin Chayan