ftp_cdup - 상위 디렉토리 변경
ftp_cdup - 상위 디렉토리 변경
설명 ¶
bool ftp_cdup ( resource $ftp_stream )
상위 디렉토리로 변경됩니다.
매개 변수 ¶
ftp_stream
FTP 연결의 링크 식별자입니다.
값을 돌려줍니다 ¶
반환 값 TRUE성공 또는 FALSE실패.
예 ¶
예 # 1 ftp_cdup () 예
<?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 the current directory to html
ftp_chdir($conn_id, 'html');
echo ftp_pwd($conn_id); // /html
// return to the parent directory
if (ftp_cdup($conn_id)) {
echo "cdup successful\n";
} else {
echo "cdup not successful\n";
}
echo ftp_pwd($conn_id); // /
ftp_close($conn_id);
?>
설명 ¶
bool ftp_cdup ( resource $ftp_stream )
상위 디렉토리로 변경됩니다.
매개 변수 ¶
ftp_stream
FTP 연결의 링크 식별자입니다.
값을 돌려줍니다 ¶
반환 값 TRUE성공 또는 FALSE실패.
예 ¶
예 # 1 ftp_cdup () 예
<?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 the current directory to html
ftp_chdir($conn_id, 'html');
echo ftp_pwd($conn_id); // /html
// return to the parent directory
if (ftp_cdup($conn_id)) {
echo "cdup successful\n";
} else {
echo "cdup not successful\n";
}
echo ftp_pwd($conn_id); // /
ftp_close($conn_id);
?>
게시판 목록
개발자팁
개발과 관련된 유용한 정보를 공유하세요.
질문은 QA에서 해주시기 바랍니다.
질문은 QA에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 5186 | PHP |
swallow
|
2년 전 | 942 | |
| 5185 | PHP |
swallow
|
2년 전 | 961 | |
| 5184 | PHP |
swallow
|
2년 전 | 537 | |
| 5183 | PHP |
swallow
|
2년 전 | 841 | |
| 5182 | PHP |
swallow
|
2년 전 | 778 | |
| 5181 | 기타 |
swallow
|
2년 전 | 1021 | |
| 5180 | 2년 전 | 574 | |||
| 5179 | 기타 |
swallow
|
2년 전 | 1434 | |
| 5178 | PHP |
swallow
|
2년 전 | 795 | |
| 5177 | JavaScript |
swallow
|
2년 전 | 1490 | |
| 5176 | PHP |
swallow
|
2년 전 | 1188 | |
| 5175 | 2년 전 | 566 | |||
| 5174 | 기타 | 2년 전 | 816 | ||
| 5173 | PHP |
|
2년 전 | 969 | |
| 5172 | PHP |
|
2년 전 | 1253 | |
| 5171 | 기타 |
그누GPT
|
2년 전 | 1556 | |
| 5170 | PHP |
|
2년 전 | 1051 | |
| 5169 | PHP |
|
2년 전 | 1226 | |
| 5168 | PHP |
|
2년 전 | 1200 | |
| 5167 | JavaScript |
|
2년 전 | 997 | |
| 5166 | MySQL | 2년 전 | 1191 | ||
| 5165 | MySQL | 2년 전 | 1254 | ||
| 5164 | PHP | 2년 전 | 1501 | ||
| 5163 | OS |
|
2년 전 | 843 | |
| 5162 | 웹서버 |
|
2년 전 | 891 | |
| 5161 | 웹서버 |
|
2년 전 | 975 | |
| 5160 | PHP |
|
2년 전 | 843 | |
| 5159 | PHP |
|
2년 전 | 904 | |
| 5158 | PHP |
|
2년 전 | 916 | |
| 5157 | PHP |
|
2년 전 | 942 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기