My host does not allow access to $_SERVER["DOCUMENT_ROOT"] on my shared hosting. I can not afford to upgrade to VPS, so I am looking for a work around. They just changed us to new servers and it used to work so I used it for all my includes and a few other things and now my sites are broken. Any suggestions on a way to get the document root with out using $_SERVER["DOCUMENT_ROOT"].
FYI: I just started learning PHP about 3 months ago.
Old Way: require($_SERVER['DOCUMENT_ROOT'] . "/noaccess/config.php");