If I have an index.php file that includes inc/footer.php I would write:
include \'inc/footer.php\';
If I want to include another file inside fo
The best place to find the answer is in the PHP manual.
http://php.net/manual/en/function.include.php
Short answer: the path is relative to the executing PHP script no the sub includes.
Setting a global absolute path to your functions, classes etc folders is the best method.