(PECL ssh2 >= 0.9.0)
ssh2_sftp_lstat — 统计符号链接
有关可能返回的值的详细信息,请参见 stat() 的文档。
示例 #1 通过 SFTP 统计符号链接
<?php
$connection = ssh2_connect('shell.example.com', 22);
ssh2_auth_password($connection, 'username', 'password');
$sftp = ssh2_sftp($connection);
$statinfo = ssh2_sftp_lstat($sftp, '/path/to/symlink');
$filesize = $statinfo['size'];
$group = $statinfo['gid'];
$owner = $statinfo['uid'];
$atime = $statinfo['atime'];
$mtime = $statinfo['mtime'];
$mode = $statinfo['mode'];
?>