The chgrp() function changes the user group of the specified file.
Returns TRUE if successful and FALSE if failed.
chgrp(file,group)
parameter | describe |
---|---|
file | Required. Specifies the documents to be checked. |
group | Optional. Specify new group. Can be a group name or group ID. |
<?phpchgrp("test.txt","admin")?>