realpath

Example

 string realpath ( string $path ) 

Description

realpath() expands all symbolic links and resolves references to '/./', '/../' and extra '/' characters in the input path and return the canonicalized absolute pathname.

Return Values

Returns the canonicalized absolute pathname on success. The resulting path will have no symbolic link, '/./' or '/../' components. realpath() returns FALSE on failure, e.g. if the file does not exist. Note: The running script must have executable permissions on all directories in the hierarchy, otherwise realpath() will return FALSE. Note: Because PHP's integer type is signed and many platforms use 32bit integers, some filesystem functions may return unexpected results for files which are larger than 2GB.