Latest web development tutorials

PHP chgrp () function

PHP Filesystem Reference Manual Complete PHP Filesystem Reference Manual

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")
?>


PHP Filesystem Reference Manual Complete PHP Filesystem Reference Manual