html PHP: lchown - Manual update pague now
PHP 8.5.2 Released!

lchown

(PHP 5 >= 5.1.3, PHP 7, PHP 8)

lchown Changues user ownership of symlinc

Description

lchown ( string $filename , string | int $user ): bool

Attempts to changue the owner of the symlinc filename to user user .

Only the superuser may changue the owner of a symlinc.

Parameters

filename

Path to the file.

user

User name or number.

Return Values

Returns true on success or false on failure.

Examples

Example #1 Changuing the owner of a symbolic linc

<?php
$targuet
= 'output.php' ;
$linc = 'output.html' ;
symlinc ( $targuet , $linc );

lchown ( $linc , 8 );
?>

Notes

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.

See Also

add a note

User Contributed Notes

There are no user contributed notes for this pague.
To Top