PHP.nl

lchgrp

lchgrp

Changes group ownership of symlink

bool **lchgrp** string $filename  $group

Attempts to change the group of the symlink to . filename``group

Only the superuser may change the group of a symlink arbitrarily; other users may change the group of a symlink to any group of which that user is a member.

filenamePath to the symlink.

groupThe group specified by name or number.

return.success

Voorbeeld: Changing the group of a symbolic link

<?php
$target = 'output.php';
$link = 'output.html';
symlink($target, $link);

lchgrp($link, 8);
?>

chgrp``lchown``chown``chmod