WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

PHP ftp_rmdir () function


Definition and usage

The ftp_rmdir () function deletes a directory on the FTP server.

If successful, the function returns TRUE. If it fails, it returns FALSE.

Syntax

ftp_rmdir (ftp_connection, dir)

parameters description
ftp_connection Required. Specifies the FTP connection to use.
dir Required. Specifies the directory to be deleted.


Example

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

ftp_rmdir($conn,"testdir");

ftp_close($conn);
?>