ftp_rmdir - 디렉토리를 제거합니다.
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);
?>
게시판 목록
개발자팁
개발과 관련된 유용한 정보를 공유하세요.
질문은 QA에서 해주시기 바랍니다.
질문은 QA에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 4496 | PHP | 8년 전 | 1830 | ||
| 4495 | PHP | 8년 전 | 1813 | ||
| 4494 | jQuery |
프로그래머7
|
8년 전 | 2339 | |
| 4493 | jQuery |
프로그래머7
|
8년 전 | 2182 | |
| 4492 | jQuery |
프로그래머7
|
8년 전 | 2282 | |
| 4491 | 기타 | 8년 전 | 16454 | ||
| 4490 | 기타 | 8년 전 | 2158 | ||
| 4489 | PHP | 8년 전 | 2526 | ||
| 4488 | PHP | 8년 전 | 3052 | ||
| 4487 | PHP | 8년 전 | 1970 | ||
| 4486 | PHP | 8년 전 | 1650 | ||
| 4485 | PHP | 8년 전 | 1833 | ||
| 4484 | PHP | 8년 전 | 2052 | ||
| 4483 | PHP | 8년 전 | 2287 | ||
| 4482 | PHP | 8년 전 | 2142 | ||
| 4481 | PHP | 8년 전 | 2699 | ||
| 4480 | PHP | 8년 전 | 2084 | ||
| 4479 | PHP | 8년 전 | 1963 | ||
| 4478 | PHP | 8년 전 | 2361 | ||
| 4477 | PHP | 8년 전 | 2102 | ||
| 4476 | PHP | 8년 전 | 2099 | ||
| 4475 | PHP | 8년 전 | 2043 | ||
| 4474 | PHP | 8년 전 | 2478 | ||
| 4473 | PHP | 8년 전 | 3099 | ||
| 4472 | PHP | 8년 전 | 2628 | ||
| 4471 | jQuery |
프로그래머7
|
8년 전 | 2125 | |
| 4470 | jQuery |
프로그래머7
|
8년 전 | 2416 | |
| 4469 | jQuery |
프로그래머7
|
8년 전 | 2157 | |
| 4468 | jQuery |
프로그래머7
|
8년 전 | 2004 | |
| 4467 | PHP | 8년 전 | 2163 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기