I have several subdomains contained in their own directory above my root site, and an assets folder in my root directory. For example:
/
/assets/
/forums/
/blog/
I'm trying to require() files on php pages in both the root directory, and the subdirectories, for example, assets/include/form.php is required() in both index.php in the root directory and index.php in the forums directory. However, inside form.php, is another require, trying to get another file contained in the include directory.
I can't seem to find a way to require a file inside this form.php where it will work on both the root directory's index.php and the forum directory's index.php.
Is there any way I can explicitly require a file starting from the root directory?