(PHP 4, PHP 5, PHP 7)
ftp_rmdir — ɾ�� FTP �������ϵ�һ��Ŀ¼
$ftp_stream
, string $directory
) : bool
ɾ���ɲ��� directory
ָ����Ŀ¼��
ftp_stream
FTP ������Դ��
directory
Ҫɾ����Ŀ¼��������һ����Ŀ¼�ľ���·�������·����
�ɹ�ʱ���� TRUE
�� ������ʧ��ʱ���� FALSE
��
Example #1 ftp_rmdir() ����
<?php
$dir = 'www/';
$conn_id = ftp_connect($ftp_server);
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
if (ftp_rmdir($conn_id, $dir)) {
echo 'Successfully deleted ' . $dir;
} else {
echo 'There was a problem while deleting ' . $dir;
}
ftp_close($conn_id);
?>