Modify the ownership of a symbolic link by the user:
<?php $target = “downloads.php”; $link = “downloads”; symlink($target, $link); lchown($link, 8) ?> |
A symbolic link’s owner can be modified by the user using the lchown() function.
Note: This is a filesystem link rather than an HTML link.
Note: Windows platforms are incompatible with this function.
lchown(file, group) |
Parameter |
Description |
file |
Essential. specifies the symlink’s path. |
group |
Essential. Provides the name or number of the new user. |
Return Value: |
FALSE when it fails, TRUE when it succeeds |
PHP Version: |
5.1.3+ |