I am absolutely terrible with using 'require', 'include' and 'require_once' to locate my files and include them inside other .php files and would like some assistance.
The class where it's located:
htdocs (Main)
- wp-content
-- mu-plugins
--- extensions
---- _process
----- pp
------ classes
------- Control.php (Class)
Now I need to require_once the class 'Control.php' in the following structure:
htdocs (Main)
- wp-content
-- mu-plugins
--- extensions
---- _process
----- oc
------ run.php (Need to call inside this file)
How would I be able to achieve this? I've tried everything and can't figure out how to call files and structures.
I've tried this and it didn't work inside run.php:
require_once (__DIR__.'/../pp/classes/Control.php');