ssh2_sftp_realpath
ssh2_sftp_realpath — 指定されたパス文字列の実パスを解決する
説明
string ssh2_sftp_realpath ( resource sftp, string filename )filename をリモートファイルシステム上の有効な実パスに変換します。
例 2213. パス名を変換する
<?php
$connection = ssh2_connect('shell.example.com', 22);
ssh2_auth_password($connection, 'username', 'password');
$sftp = ssh2_sftp($connection);
$realpath = ssh2_sftp_realpath($sftp, '/home/username/../../../..//./usr/../etc/passwd');
/* $realpath は次の通り: '/etc/passwd' */
?>
realpath(), ssh2_sftp_symlink() ssh2_sftp_readlink() も参照ください。
Weblioに収録されているすべての辞書からssh2_sftp_realpathを検索する場合は、下記のリンクをクリックしてください。

- ssh2_sftp_realpathのページへのリンク