The ftp_rmdir() function deletes a directory on the FTP server.
If successful, the function returns TRUE. If it fails, returns FALSE.
ftp_rmdir(ftp_connection,dir)
parameter | describe |
---|---|
ftp_connection | Required. Specifies the FTP connection to use. |
dir | Required. Specifies the directory to be deleted. |
<?php$conn = ftp_connect("ftp.testftp.com") or die("Could not connect");ftp_login($conn,"admin","ert456");ftp_rmdir($conn,"testdir"); ftp_close($conn);?>