Web | This Site

Learning PHP
Advanced PHP
PHP Function Reference
PHP Useful Resources
Selected Reading
© 2011 TutorialsPoint.COM

| Home |  | References |  | Discussion Forums |  | About TP

# PHP Function chgrp()

## Syntax

bool chgrp ( string $filename, mixed $group );

## Definition and Usage

Attempts to change the group of the file filename to group.

## Paramters

Parameter | Description
--- | ---
filename | Path to the file.
group | A group name or number.

## Return Value

Returns TRUE on success or FALSE on failure.

## Example

Following is the usage of this function:

    <?php
    $filename = "/home/httpd/html/index.php";
    chgrp ( $filename, "guest" );
    ?>

Advertisement

Online Image Processing

Indian Baby Names