The lchown function changes the user ownership of a symbolic link. The function returns TRUE on success and FALSE on failure.
Note - This function is not implemented on the Windows platform.
lchown(file_path, user)
file_path - Specifies the file path. Required.
User - Specify the username or number.
lchown() function returns TRUE on success and FALSE on failure.
<?php $target = new.php'; $mylink = new.html'; symlink($target, $mylink); lchown($mylink, 8); ?>
TRUE
The above is the detailed content of lchown() function in PHP. For more information, please follow other related articles on the PHP Chinese website!