PHP ftp_rmdir() 函數(shù)
PHP ftp_rmdir() 函數(shù)

定義和用法
The ftp_rmdir() 函數(shù)刪除 FTP 服務器上的一個目錄。
如果成功,該函數(shù)返回 TRUE。如果失敗,則返回 FALSE。
語法
ftp_rmdir(ftp_connection,dir)
參數(shù) | 描述 |
---|---|
ftp_connection | 必需。規(guī)定要使用的 FTP 連接。 |
dir | 必需。規(guī)定要刪除的目錄。 |
實例
<?php
$conn = ftp_connect("ftp.testftp.com") or die("Could not connect");
ftp_login($conn,"admin","ert456");
ftp_rmdir($conn,"testdir");
ftp_close($conn);
?>
$conn = ftp_connect("ftp.testftp.com") or die("Could not connect");
ftp_login($conn,"admin","ert456");
ftp_rmdir($conn,"testdir");
ftp_close($conn);
?>

相關文章
- PHP 簡介
- PHP echo 和 print 語句
- PHP EOF(heredoc) 使用說明
- PHP 常量
- PHP 面向對象
- PHP $_POST 變量
- PHP Cookie
- PHP 發(fā)送電子郵件
- PHP Secure E-mails
- PHP array_fill() 函數(shù)
- PHP array_intersect_ukey() 函數(shù)
- PHP array_map() 函數(shù)
- PHP array_shift() 函數(shù)
- PHP array_sum() 函數(shù)
- PHP array_udiff_uassoc() 函數(shù)
- PHP each() 函數(shù)
- PHP sizeof() 函數(shù)
- PHP Libxml 函數(shù)
- PHP Mail 函數(shù)
- PHP 雜項 函數(shù)