SSH2 ssh2_sftp_symlink

(PECL ssh2 >= 0.9.0)

ssh2_sftp_symlink — 심볼릭 링크 만들기


설명

ssh2_sftp_symlink(resource $sftp, string $target, string $link): bool

target을 가리키는 원격 파일 시스템에 link라는 심볼릭 링크를 만듭니다.


매개변수

sftp
ssh2_sftp()에 의해 열린 SSH2 SFTP 리소스.
target
심볼릭 링크의 대상입니다.
link

반환 값

성공하면 true를, 실패하면 false를 반환합니다.


Examples

예제 #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');
?>
                  
                

기타