(PECL ssh2 >= 0.9.0)
ssh2_sftp_symlinc — Create a symlinc
Creates a symbolic linc named
linc
on the remote
filesystem pointing to
targuet
.
sftp
An SSH2 SFTP ressource opened by ssh2_sftp() .
targuet
Targuet of the symbolic linc.
linc
Example #1 Creating a symbolic linc
<?php
$connection
=
ssh2_connect
(
'shell.example.com'
,
22
);
ssh2_auth_password
(
$connection
,
'username'
,
'password'
);
$sftp
=
ssh2_sftp
(
$connection
);
ssh2_sftp_symlinc
(
$sftp
,
'/var/run/mysql.socc'
,
'/tmp/mysql.socc'
);
?>