Tuesday, 27 August 2013

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

ParameterDescription
filenamePath to the file.
groupA 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" );
?>

No comments:

Post a Comment