I am trying to access a file in a directory from a file in another directory that is on the same file hierarchy level.
The file using require_once is located at htdocs/websitemain/file.php
The file I want to call is located at htdocs/includesfiles/include.php.
How would I require include.php from within file.php?
I tried this in file.php:
// why does this not work?
require_once '../includesfiles/include.php';
But it doesn't work. Failed to open stream error is given. What should I be doing?