Query: ssh2_sftp_rmdir
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
SSH2_SFTP_RMDIR(3) 1 SSH2_SFTP_RMDIR(3) ssh2_sftp_rmdir - Remove a directorySYNOPSISbool ssh2_sftp_rmdir (resource $sftp, string $dirname)DESCRIPTIONRemoves a directory from the remote file server. This function is similar to using rmdir(3) with the ssh2.sftp:// wrapper.PARAMETERSo $sftp - An SSH2 SFTP resource opened by ssh2_sftp(3). o $dirname -RETURN VALUESReturns TRUE on success or FALSE on failure.EXAMPLESExample #1 Removing a directory on a remote server <?php $connection = ssh2_connect('shell.example.com', 22); ssh2_auth_password($connection, 'username', 'password'); $sftp = ssh2_sftp($connection); ssh2_sftp_rmdir($sftp, '/home/username/deltodel'); /* Or: rmdir("ssh2.sftp://$sftp/home/username/dirtodel"); */ ?>SEE ALSOrmdir(3), ssh2_sftp_mkdir(3). PHP Documentation Group SSH2_SFTP_RMDIR(3)
Related Man Pages |
---|
sftp-server(1m) - hpux |
sftp-server(1m) - x11r4 |
ssh2_sftp_lstat(3) - php |
ssh2_sftp_mkdir(3) - php |
sftp-server(1m) - v7 |
Similar Topics in the Unix Linux Community |
---|
Simple rules of the UNIX.COM forums: |
Please Welcome Don Cragun as Lead Moderator |
Status of UNIX.COM Forum Transformation |
Denial Of Service Attack Update |