컴

ftp_mkdir - 디렉토리 를 만듭니다.

· 2017-02-17 (금) 23:13:20 · 2989

ftp_mkdir - 디렉토리 를 만듭니다.

 

설명 ¶

 

string ftp_mkdir ( resource $ftp_stream , string $directory )

지정된 것을 directoryFTP 서버에 작성합니다 .

 

매개 변수 ¶

 

ftp_stream

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

 

directory

작성 될 디렉토리의 이름.

 

반환 값 ¶

 

성공 또는 실패하면 새로 생성 된 디렉토리 이름을 반환합니다 FALSE.

 

예 ¶

 

Example # 1 ftp_mkdir () 예제

 

<?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 create the directory $dir

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

 echo "successfully created $dir\n";

} else {

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

}

 

// close the connection

ftp_close($conn_id);

?>

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

개발자팁

5,403건

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

+
분류 제목 글쓴이 날짜 조회
PHP 17-05-05 조회 2,660
PHP 17-05-04 조회 2,722
PHP 17-05-04 조회 3,100
PHP 17-05-04 조회 2,591
node.js 17-04-30 조회 2,480
jQuery 17-04-14 조회 2,093
jQuery 17-04-14 조회 2,192
jQuery 17-04-14 조회 2,526
PHP 17-04-14 조회 2,595
PHP 17-04-14 조회 2,879
PHP 17-04-14 조회 2,813
jQuery 17-04-13 조회 1,880
jQuery 17-04-13 조회 1,848
jQuery 17-04-13 조회 2,380
PHP 17-04-11 조회 2,721
PHP 17-04-11 조회 2,241
PHP 17-04-11 조회 2,960
OS 17-04-11 조회 3,249
PHP 17-04-10 조회 2,391
PHP 17-04-10 조회 2,004
PHP 17-04-10 조회 2,436
PHP 17-04-05 조회 2,452
PHP 17-04-05 조회 2,861
PHP 17-04-05 조회 2,701
jQuery 17-04-05 조회 2,302
jQuery 17-04-05 조회 1,837
jQuery 17-04-05 조회 2,428
jQuery 17-04-04 조회 2,342
jQuery 17-04-04 조회 2,116
PHP 17-04-04 조회 3,071