ftp_pwd - 현재 디렉토리 이름을 반환합니다. > 개발자팁

개발자팁

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

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

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

본문

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

?>

추천
0

댓글 0개

전체 1,174
개발자팁 내용 검색 PHP에서

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT