Modify the ownership group of a symbolic link:
<?php $target = “downloads.php”; $link = “downloads”; symlink($target, $link); lchgrp($link, 8) ?> |
A symbolic link’s group ownership can be modified using the lchgrp() function.
Note: This is a filesystem link rather than an HTML link.
Note: Windows platforms are incompatible with this function.
lchgrp(file, group) |
Parameter |
Description |
file |
Essential. specifies the symlink’s path. |
group |
Essential. Gives the name or number of the new group. |
Return Value: |
FALSE when it fails, TRUE when it succeeds |
PHP Version: |
5.1.3+ |