It seems to me there used to be a function that provided the path to a file among other useful information. Now for the life of me I cannot remember it, or locate it in the manual or function list.
example:
filename.txt
somefunction('./filename.txt');
somefunction would return the real path.
Anyone know? Maybe I am SOL.