(PHP 5 >= 5.1.2)
lchgrp — Changes group ownership of symlink
Attempts to change the group of the symlink filename to 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.
Path to the symlink.
The group specified by name or number.
成功时返回 TRUE, 或者在失败时返回 FALSE.
Example #1 Changing the group of a symbolic link
<?php
$target = 'output.php';
$link = 'output.html';
symlink($target, $link);
lchgrp($link, 8);
?>