Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

lchgrp

Description

The lchgrp of Filesystem for PHP 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

1

<?

$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
HomeMenu