PHP chown() 함수
❮ PHP 파일 시스템 참조예시
"test.txt" 파일의 소유자 변경:
<?php
chown("test.txt","charles")
?>
정의 및 사용
chown() 함수는 지정된 파일의 소유자를 변경합니다.
통사론
chown(file, owner)
매개변수 값
Parameter | Description |
---|---|
file | Required. Specifies the path to the file to change owner for |
owner | Required. Specifies the new owner. Can be a user name or a user ID. |
기술적 세부 사항
반환 값: | 성공하면 TRUE, 실패하면 FALSE |
---|---|
PHP 버전: | 4.0+ |
❮ PHP 파일 시스템 참조