ftp_rmdir - 디렉토리를 제거합니다.

· 2017-02-24 (금) 00:34:33 · 2988

ftp_rmdir - 디렉토리를 제거합니다.

 

설명 ¶

 

bool ftp_rmdir ( resource $ftp_stream , string $directory )

지정된 directoryFTP 서버에서 제거합니다 .

 

매개 변수 ¶

 

ftp_stream

FTP 연결의 링크 식별자입니다.

 

directory

삭제할 디렉토리입니다. 빈 디렉토리에 대한 절대 또는 상대 경로 여야합니다.

 

반환 값 ¶

 

반환 값 TRUE성공 또는 FALSE실패.

 

예 ¶

 

Example # 1 ftp_rmdir () 예제

 

<?php

 

$dir = 'www/';

 

// set up basic connection

$conn_id = ftp_connect($ftp_server);

 

// login with username and password

$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);

 

// try to delete the directory $dir

if (ftp_rmdir($conn_id, $dir)) {

    echo "Successfully deleted $dir\n";

} else {

    echo "There was a problem while deleting $dir\n";

}

 

ftp_close($conn_id);

 

?>

|
댓글을 작성하시려면 로그인이 필요합니다.

개발자팁

5,403건

개발과 관련된 유용한 정보를 공유하세요. 질문은 QA에서 해주시기 바랍니다.

+
분류 제목 글쓴이 날짜 조회
PHP 17-03-09 조회 2,782
PHP 17-03-09 조회 2,663
PHP 17-03-09 조회 2,869
jQuery 17-03-09 조회 2,308
jQuery 17-03-09 조회 2,186
jQuery 17-03-09 조회 2,129
PHP 17-03-08 조회 2,139
PHP 17-03-08 조회 2,315
PHP 17-03-08 조회 2,294
jQuery 17-03-08 조회 2,806
jQuery 17-03-08 조회 2,615
jQuery 17-03-08 조회 2,755
기타 17-03-08 조회 1.7만
기타 17-03-06 조회 2,597
PHP 17-03-01 조회 3,028
PHP 17-03-01 조회 3,541
PHP 17-03-01 조회 2,463
PHP 17-02-28 조회 2,144
PHP 17-02-28 조회 2,330
PHP 17-02-28 조회 2,539
PHP 17-02-27 조회 2,775
PHP 17-02-27 조회 2,637
PHP 17-02-27 조회 3,229
PHP 17-02-26 조회 2,578
PHP 17-02-26 조회 2,474
PHP 17-02-26 조회 2,862
PHP 17-02-25 조회 2,593
PHP 17-02-25 조회 2,641
PHP 17-02-25 조회 2,521
PHP 17-02-24 조회 2,989