(PHP 5 >= 5.1.2)
lchgrp — Changes group ownership of symlink
說明
bool lchgrp ( string$filename
, mixed $group
)
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.
參數(shù)
filename
Path to the symlink.
group
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);
?>
注釋
Note: 此函數(shù)不能作用于遠程文件,被檢查的文件必須是可通過服務器的文件系統(tǒng)訪問的。
Note: 當啟用 安全模式時, PHP 會檢查被操作的文件或目錄是否與被執(zhí)行的腳本有相同的 UID(所有者)。
Note: 此函數(shù)未在 Windows 平臺下實現(xiàn)。
參見
chgrp() - 改變文件所屬的組 lchown() - Changes user ownership of symlink chown() - 改變文件的所有者 chmod() - 改變文件模式