Current Location: Home> Function Categories> ftp_rmdir

ftp_rmdir

Delete the directory on the FTP server.
Name:ftp_rmdir
Category:Uncategorized
Programming Language:php
One-line Description:Delete the directory on the FTP server.

Definition and usage

ftp_rmdir() function deletes a directory.

Return true if successful, otherwise return false.

实例

<?php
$conn = ftp_connect("ftp.testftp.com") or die("Could not connect");
ftp_login($conn,"admin","ert456");

ftp_rmdir($conn,"testdir");

ftp_close($conn);
?>

grammar

 ftp_rmdir ( ftp_connection , dir )
parameter describe
ftp_connection Required. Specifies the FTP connection to be used (the identifier of the FTP connection).
dir Required. Specify the directory to be deleted.

illustrate

Delete the directory specified by the parameter dir . dir must be an absolute or relative path to an empty directory.

Return true if successful, otherwise return false.

Similar Functions
Popular Articles