string resolvepath(string path)
Resolve all symbolic links of a pathname.
This function resolves all symbolic links, extra ``/'' characters and references to /./ and /../ in pathname , and returns the resulting absolute path, or 0 (zero) if an error occurs.
This function is not available on all platforms.
readlink() , symlink()