How to get the path from localhost?

How to get the path from localhost?

am 26.08.2007 18:53:23 von Zanna

Hi,

I have the localhost physical path that is

E:\www\testproject\

and __FILE__ that is

E:\www\testproject\subdir\file.php

Now I'd like to get the relative directory of file.php to the localhost
path:

/subdir

How can I get it?

It should be simple but I cannot find how :(

Thanks!