(PHP 5 >= 5.1.3, PHP 7, PHP 8)
lchown — 修改符號鏈接的所有者
嘗試修改符號鏈接 filename
的 所有者 user
只有超級用戶(hù)任意修改符號鏈接的所有者。
filename
文件路徑。
user
所有者名稱(chēng)或編號
成功時(shí)返回 true
, 或者在失敗時(shí)返回 false
。
示例 #1 Changing the owner of a symbolic link
<?php
$target = 'output.php';
$link = 'output.html';
symlink($target, $link);
lchown($link, 8);
?>