Menu Home

lchgrp

osbo.com | PHP | Functions | lchgrp

Changes group ownership of symlink

Syntax

lchgrp ( string $filename , mixed $group ) : bool

Parameters

filename

Path to the symlink.

group

The group specified by name or number.

Return

Returns TRUE on success or FALSE on failure.

Examples

<?

$target = 'output.php';
$link = 'output.html';
symlink($target, $link);
printf("%d\n", filegroup($target));

lchgrp($link, 8);
printf("%d", filegroup($target));

unlink($link);

?>
0
8

PHP