Access files outside of public_html


I have a php script outside of public_html and one inside. The one inside requires the one outside so I have require_once (the absolute path);
I don’t want to have the absolute path there. Is there something I can use to get the directory above public_html like how DIR returns the absolute path of public_html?


Sorry, but the permissions on the web servers won’t allow that to happen. The only way to do something like that would be on a VPS, not even paid shared hosting.