php ftp_chmod - FTP를 통해 파일에 대한 권한 설정
ftp_chmod - FTP를 통해 파일에 대한 권한 설정
설명 ¶
INT ftp_chmod ( resource $ftp_stream , INT $mode , string $filename )
지정된 원격 파일에 대한 사용 권한을 설정합니다 mode.
매개 변수 ¶
ftp_stream
FTP 연결의 링크 식별자입니다.
mode
새로운 권한은, int로서 주어진 8 진수 값입니다.
filename
원격 파일.
값을 돌려줍니다 ¶
성공 또는 새 파일 권한을 돌려 FALSE에러입니다.
예 ¶
예 # 1 ftp_chmod () 예
<?php
$file = 'public_html/index.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);
// try to chmod $file to 644
if (ftp_chmod($conn_id, 0644, $file) !== false) {
echo "$file chmoded successfully to 644\n";
} else {
echo "could not chmod $file\n";
}
// close the connection
ftp_close($conn_id);
?>
설명 ¶
INT ftp_chmod ( resource $ftp_stream , INT $mode , string $filename )
지정된 원격 파일에 대한 사용 권한을 설정합니다 mode.
매개 변수 ¶
ftp_stream
FTP 연결의 링크 식별자입니다.
mode
새로운 권한은, int로서 주어진 8 진수 값입니다.
filename
원격 파일.
값을 돌려줍니다 ¶
성공 또는 새 파일 권한을 돌려 FALSE에러입니다.
예 ¶
예 # 1 ftp_chmod () 예
<?php
$file = 'public_html/index.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);
// try to chmod $file to 644
if (ftp_chmod($conn_id, 0644, $file) !== false) {
echo "$file chmoded successfully to 644\n";
} else {
echo "could not chmod $file\n";
}
// close the connection
ftp_close($conn_id);
?>
게시판 목록
개발자팁
개발과 관련된 유용한 정보를 공유하세요.
질문은 QA에서 해주시기 바랍니다.
질문은 QA에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 5216 | 2년 전 | 950 | |||
| 5215 | 2년 전 | 1083 | |||
| 5214 | 2년 전 | 724 | |||
| 5213 | PHP |
swallow
|
2년 전 | 669 | |
| 5212 | PHP |
swallow
|
2년 전 | 1693 | |
| 5211 | PHP |
swallow
|
2년 전 | 1455 | |
| 5210 | PHP |
swallow
|
2년 전 | 2142 | |
| 5209 | PHP | 2년 전 | 692 | ||
| 5208 | JavaScript |
swallow
|
2년 전 | 830 | |
| 5207 | JavaScript |
swallow
|
2년 전 | 682 | |
| 5206 | JavaScript |
swallow
|
2년 전 | 604 | |
| 5205 | PHP |
|
2년 전 | 696 | |
| 5204 | 기타 |
techstar
|
2년 전 | 749 | |
| 5203 | JavaScript |
swallow
|
2년 전 | 576 | |
| 5202 | JavaScript |
swallow
|
2년 전 | 604 | |
| 5201 | JavaScript |
swallow
|
2년 전 | 667 | |
| 5200 | JavaScript |
swallow
|
2년 전 | 857 | |
| 5199 | JavaScript | 2년 전 | 619 | ||
| 5198 | 기타 |
swallow
|
2년 전 | 651 | |
| 5197 | PHP |
swallow
|
2년 전 | 731 | |
| 5196 | JavaScript |
swallow
|
2년 전 | 597 | |
| 5195 | PHP |
swallow
|
2년 전 | 2051 | |
| 5194 | PHP |
swallow
|
2년 전 | 612 | |
| 5193 | 기타 |
swallow
|
2년 전 | 662 | |
| 5192 | MySQL |
swallow
|
2년 전 | 1382 | |
| 5191 | JavaScript |
swallow
|
2년 전 | 1071 | |
| 5190 | PHP |
swallow
|
2년 전 | 1924 | |
| 5189 | MySQL |
swallow
|
2년 전 | 6183 | |
| 5188 | node.js |
swallow
|
2년 전 | 1040 | |
| 5187 | node.js |
swallow
|
2년 전 | 788 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기