diff --git a/reference/ssh2/functions/ssh2-sftp-lstat.xml b/reference/ssh2/functions/ssh2-sftp-lstat.xml index 7241660ed2..a4e997c270 100644 --- a/reference/ssh2/functions/ssh2-sftp-lstat.xml +++ b/reference/ssh2/functions/ssh2-sftp-lstat.xml @@ -1,5 +1,5 @@ - + @@ -34,7 +34,7 @@ $connection = ssh2_connect('shell.example.com', 22); ssh2_auth_password($connection, 'username', 'password'); $sftp = ssh2_sftp($connection); -$statinfo = ssh2_lstat($sftp, '/path/to/symlink'); +$statinfo = ssh2_sftp_lstat($sftp, '/path/to/symlink'); $filesize = $statinfo['size']; $group = $statinfo['gid']; diff --git a/reference/ssh2/functions/ssh2-sftp-stat.xml b/reference/ssh2/functions/ssh2-sftp-stat.xml index eb56599ff4..dfd097d6bc 100644 --- a/reference/ssh2/functions/ssh2-sftp-stat.xml +++ b/reference/ssh2/functions/ssh2-sftp-stat.xml @@ -1,5 +1,5 @@ - + @@ -33,7 +33,7 @@ $connection = ssh2_connect('shell.example.com', 22); ssh2_auth_password($connection, 'username', 'password'); $sftp = ssh2_sftp($connection); -$statinfo = ssh2_stat($sftp, '/path/to/symlink'); +$statinfo = ssh2_sftp_stat($sftp, '/path/to/file'); $filesize = $statinfo['size']; $group = $statinfo['gid'];