In the past, I have used <?php include($SERVER['DOCUMENTROOT']."/include/footer.php") ?> from anywhere on the site. So even if I were somewhere like root/sub/sub/sub/fiile.php, that command would get to the root/include folder.
So maybe there is something else I need to do. I think DOCUMENT_ROOT takes me to the root of the site, and at home that is the htdocs folder which is one level up from the mysite folder or the daughers_site folder. The ides is that I would have:
What are my options?
So DOCUMENT_ROOT does not work from the sub folder. The only folder that I use like that is the include folder.