PHP lchgrp() Function
❮ PHP Filesystem ReferenceExample
Change the group ownership of a symbolic link:
<?php
$target = "downloads.php";
$link = "downloads";
symlink($target, $link);
lchgrp($link, 8)
?>
Definition and Usage
The lchgrp() function changes the group ownership of a symbolic link.
Note: This is not an HTML link, but a link in the filesystem.
Note: This function does not work on Windows platforms.
Syntax
lchgrp(file, group)
Parameter Values
Parameter | Description |
---|---|
file | Required. Specifies the path to the symlink |
group | Required. Specifies the new group by name or number |
Technical Details
Return Value: | TRUE on success, FALSE on failure |
---|---|
PHP Version: | 5.1.3+ |
❮ PHP Filesystem Reference
Copyright 1999-2023 by Refsnes Data. All Rights Reserved.