< Referring to Make path accessible at various level of folder on PHP >
The code below:
require_once __DIR__ . '/../FolderB2/PageB21.php';
This works locally, but not when I have uploaded the page to the server. Is my hosting company restricting access to this?
If you run this code, do you get the exact path you are expecting?
Perhaps the relative path is wrong or maybe there is a mistake in the casing (i.e. if your local machine is windows, paths are not case sensitive, but they would be on a Linux server).