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 |
|---|
| ssh2_sftp_lstat(3) - php |
| ssh2_sftp_stat(3) - php |
| sftp-server(1m) - php |
| sftp-server(1m) - minix |
| sftp-server(1m) - xfree86 |
| Similar Topics in the Unix Linux Community |
|---|
| Rules for Homework & Coursework Questions Forum |
| Coming Soon: Upgrade Forum Software (Dec 31 - Jan 1) |
| New Code Tags (Syntax Highlighting) |
| Please Welcome Don Cragun as Lead Moderator |