thats sound a bit confusing, but maybe you just do:
<?
$strFile = $_SERVER["PHP_SELF"];
$strPath = getcwd();
echo $strFileAbsPath = $strPath.$strFile;
?>
that would print out the absolute path to the current file you are working in.
hope it at least helped a bit.
ali