Is there any function that will show the path to my directory? Something as purls $ENV{'DOCUMENT_ROOT'};
You could create a page with an error on it and it should tell you it's path in the debug.
do this:
getenv("DOCUMENT_ROOT");
$PHP_SELF should tell you your URL path. not sure if this is what you are asking.