lchown
(PHP 5 >= 5.1.3, PHP 7, PHP 8)
lchown — 修改符号链接的所有者
参数
-
filename
-
文件路径。
-
user
-
所有者名称或编号
返回值
成功时返回 true
, 或者在失败时返回 false
。
范例
示例 #1 Changing the owner of a symbolic link
<?php
$target = 'output.php';
$link = 'output.html';
symlink($target, $link);
lchown($link, 8);
?>

User Contributed Notes
There are no user contributed notes for this page.