I have 2 sites hosted together: /www/example.ca/ and /www/example2.ca/
If a file is somewhere under /example.ca/ that is what ($_SERVER['DOCUMENT_ROOT']) returns.
However, when testing on my home system, ($_SERVER['DOCUMENT_ROOT']) results in /apache/htdocs/ regardless of which subfolder I am in.
Is there some clever way that I can set the include path or modify my home environment so that I don't have to manually alter every file path before I upload to the host?