PHP Manual
Prev |  | Next

# chgrp

(PHP 3 <= 3.0.18, PHP 4 >= 4.0.0)

chgrp -- Changes file group

## Description

``int chgrp` (string filename, mixed group)`

Attempts to change the group of the file `filename` to `group` (specified by name or number). Only the superuser may change the group of a file arbitrarily; other users may change the group of a file to any group of which that user is a member.

Returns `TRUE` on success; otherwise returns `FALSE`.

See also chown() and chmod().

> Note: This function is not implemented on Windows platforms.

Prev | Home | Next
basename | Up | chmod