chgrp
Change the group to which the file belongs
chgrp()
function changes the group to which the file belongs.
Return TRUE if successful, otherwise return FALSE.
<?php chgrp ( "test.txt" , "admin" ) ?>
chgrp ( file , group )
parameter | describe |
---|---|
file | Required. Specify documents to be inspected. |
group | Optional. Specify new groups. Can be the group name or the group ID. |
Try changing the group to which the file file belongs to a group (specified by the group name or group ID).
Only super users can modify the group of files at will, and other users may only be able to change the group of files into the group where the user is.