mar.php
static public function getRealPath($path) {
		if (strpos($path, '~') === 0) {
			$path = substr_replace($path, $_SERVER['HOME'], 0, 1);
		}

		$_path = realpath($path);
		if (!empty($path) && $_path !== false) {
			return rtrim($_path, DIRECTORY_SEPARATOR);
		}
		return false;
	}
static public function getRealPath($path) {
		if (strpos($path, '~') === 0) {
			$path = substr_replace($path, $_SERVER['HOME'], 0, 1);
		}

		$_path = realpath($path);
		if (!empty($path) && $_path !== false) {
			return rtrim($_path, DIRECTORY_SEPARATOR);
		}
		return false;
	}
static public function getRealPath ( $ path ) { if ( strpos ( $ path , '~' ) === 0 ) { $ path = substr_replace ( $ path , $ _SERVER [ 'HOME' ] , 0 , 1 ) ; } $ _path = realpath ( $ path ) ; if ( ! empty ( $ path ) && $ _path !== false ) { return rtrim ( $ _path , DIRECTORY_SEPARATOR ) ; } return false ; }
Get a full real path name to a given path.

@access	public
@param	string	File/Folder Path
@return	mixed	File/Folder path or false on error.
Get a full real path name to a given path .