Change the group ownership of a symbolic link:
<?php
$target = "downloads.html";
$link = "downloads";
symlink($target, $link);
lchgrp($link, 8)
?>
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.
lchgrp(
file,
group)
Parameter | Description |
---|---|
file | Required. Specifies the path to the symlink |
group | Required. Specifies the new group by name or number |
Return Value: | TRUE on success, FALSE on failure |
---|---|
PHP Version: | 5.1.3+ |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!