Hi all
I would like to know how i can get to the upper most in my directory!?
ie if my root directory is c:\mydir
and i'm in c:\mydir\tools\admin\library\tool.php
and want to get an include from c:\mydir\library\inc.php!
I know i can do ../../../ but thats ridiculous ...i think there is a more creative way to get there! i remember in my ASP days there was the Server.path!
Thanks
Nick
I would like to know how i can get to the upper most in my directory!?
ie if my root directory is c:\mydir
and i'm in c:\mydir\tools\admin\library\tool.php
and want to get an include from c:\mydir\library\inc.php!
I know i can do ../../../ but thats ridiculous ...i think there is a more creative way to get there! i remember in my ASP days there was the Server.path!
Thanks
Nick