echo __DIR__;
will give the exact location of the system from the point of view of the actual file where it's called - not the parent file if it is an include file.
Is that it?
echo $_SERVER['DOCUMENT_ROOT'];
*should* give you the document root (path to public root).
diafol
Rhod Gilbert Fan (ardav)
7,800 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080