PHP chgrp () function
Definition and Usage
chgrp () function to change the user group of the specified file.
If successful it returns TRUE, on failure returns FALSE.
grammar
chgrp(file,group)
参数 | 描述 |
---|---|
file | 必需。规定要检查的文件。 |
group | 可选。规定新的组。可以是组名或组的 ID。 |
Examples
<?php
chgrp("test.txt","admin")
?>
chgrp("test.txt","admin")
?>
Complete PHP Filesystem Reference Manual