Change the usergroup to "admin" for the "test.txt" file:
<?php
chgrp("test.txt","admin")
?>
The chgrp() function changes the usergroup of the specified file.
chgrp(
file,
group)
Parameter | Description |
---|---|
file | Required. Specifies the path to the file to change user group for |
group | Required. Specifies the new group name or number |
Return Value: | TRUE on success, FALSE on failure |
---|---|
PHP Version: | 4.0+ |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!