ftp_rmdir
Delete the directory on the FTP server.
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); ?>
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. |
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.