컴

ftp_pwd - 현재 디렉토리 이름을 반환합니다.

· 2017-02-21 (화) 23:14:53 · 2671

ftp_pwd - 현재 디렉토리 이름을 반환합니다.

 

설명 ¶

 

string ftp_pwd ( resource $ftp_stream )

매개 변수 ¶

 

ftp_stream

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

 

반환 값 ¶

 

현재의 디렉토리 명을 돌려줍니다 FALSE.

 

예 ¶

 

Example # 1 ftp_pwd () 예제

 

<?php

 

// 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);

 

// change directory to public_html

ftp_chdir($conn_id, 'public_html');

 

// print current directory

echo ftp_pwd($conn_id); // /public_html

 

// close the connection

ftp_close($conn_id);

?>

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

개발자팁

5,404건

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

+
분류 제목 글쓴이 날짜 조회
PHP 17-02-24 조회 3,046
PHP 17-02-24 조회 3,687
PHP 17-02-24 조회 3,164
jQuery 17-02-23 조회 2,665
jQuery 17-02-23 조회 2,947
jQuery 17-02-23 조회 2,687
jQuery 17-02-22 조회 2,497
PHP 17-02-21 조회 2,722
PHP 17-02-21 조회 2,672
PHP 17-02-21 조회 4,470
PHP 17-02-20 조회 3,682
PHP 17-02-20 조회 3,068
PHP 17-02-20 조회 3,071
PHP 17-02-19 조회 2,895
PHP 17-02-19 조회 2,723
PHP 17-02-19 조회 2,863
PHP 17-02-17 조회 2,594
PHP 17-02-17 조회 3,024
PHP 17-02-17 조회 2,669
jQuery 17-02-16 조회 3,411
jQuery 17-02-16 조회 3,453
jQuery 17-02-16 조회 2,467
jQuery 17-02-15 조회 3,100
jQuery 17-02-15 조회 3,389
jQuery 17-02-15 조회 3,720
PHP 17-02-14 조회 2,923
PHP 17-02-14 조회 4,474
PHP 17-02-14 조회 2,714
PHP 17-02-13 조회 3,238
PHP 17-02-13 조회 2,650