I've got a function that does it all, but i'll assume you dont need it unless you ask.
to reference to a folder below the one your in like this
public_html/scripts/myscript.php
public_html/another/
the paths from myscript.php is :
"../another"
so for example say there was test.php in the another folder and you wanted to include it you would do:
include("../another/test.php");