lchown
(PHP 5 >= 5.1.2)
lchown — Changes user ownership of symlink
설명
Attempts to change the owner of the symlink filename to user user.
Only the superuser may change the owner of a symlink.
인수
- filename
-
Path to the file.
- user
-
User name or number.
반환값
성공할 경우 TRUE를, 실패할 경우 FALSE를 반환합니다.
예제
Example #1 Changing the owner of a symbolic link
<?php
$target = 'output.php';
$link = 'output.html';
symlink($target, $link);
lchown($link, 8);
?>
There are no user contributed notes for this page.
