readlink( ) function takes a link name as its only parameter and returns the target that the link points to.
<? $target = readlink("/home/andrew/myfile.txt"); print $target; ?>