I'm trying to find the most effective(safest) way to utilise my own class Library which i want to put outside of public_html site root on a linux (shared hosting) server. Several classes inside public_html in my site need to reference the classes outside the root and vise-versa. (see attached image)
Typically in one of my site classes in a directory on the root i have this line in a class:
require_once("/home/my_isp_username/myCommonClasses/utilitybelt.php");
which should reference a class file (utilitybelt.php) one-level above the root. Im getting a blank page and no errors returning; not even warnings, just a blank page. Note (shared hosting so no access to Apache/PHP config files)
Anyone know the correct way to do this?