ssh2_sftp_symlink
(PECL ssh2 >= 0.9.0)
ssh2_sftp_symlink — シンボリックリンクを作成する
説明
bool ssh2_sftp_symlink
( resource $sftp
, string $target
, string $link
)
リモートファイルシステム上に target を指す link という名称のシンボリックリンクを作成します。
返り値
成功した場合に TRUE を、失敗した場合に FALSE を返します。
例
例1 シンボリックリンクの作成
<?php
$connection = ssh2_connect('shell.example.com', 22);
ssh2_auth_password($connection, 'username', 'password');
$sftp = ssh2_sftp($connection);
ssh2_sftp_symlink($sftp, '/var/run/mysql.sock', '/tmp/mysql.sock');
?>
ssh2_sftp_symlink
There are no user contributed notes for this page.
