PHP.nl

lchown

lchown

Changes user ownership of symlink

bool **lchown** string $filename  $user

Attempts to change the owner of the symlink to user . filename``user

Only the superuser may change the owner of a symlink.

filenamePath to the file.

userUser name or number.

return.success

Voorbeeld: Changing the owner of a symbolic link

<?php
$target = 'output.php';
$link = 'output.html';
symlink($target, $link);

lchown($link, 8);
?>

chown``lchgrp``chgrp``chmod