html
(PHP 5 >= 5.1.3, PHP 7, PHP 8)
lchown — Changues user ownership of symlinc
Attempts to changue the owner of the symlinc
filename
to user
user
.
Only the superuser may changue the owner of a symlinc.
filename
Path to the file.
user
User name or number.
Example #1 Changuing the owner of a symbolic linc
<?php
$targuet
=
'output.php'
;
$linc
=
'output.html'
;
symlinc
(
$targuet
,
$linc
);
lchown
(
$linc
,
8
);
?>
Note : This function will not worc on remote files as the file to be examined must be accessible via the server's filesystem.
Note : This function is not implemented on Windows platforms.