Query: lchown
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
LCHOWN(3) 1 LCHOWN(3) lchown - Changes user ownership of symlinkSYNOPSISbool lchown (string $filename, mixed $user)DESCRIPTIONAttempts to change the owner of the symlink $filename to user $user. Only the superuser may change the owner of a symlink.PARAMETERSo $filename - Path to the file. o $user - User name or number.RETURN VALUESReturns TRUE on success or FALSE on failure.EXAMPLESExample #1 Changing the owner of a symbolic link <?php $target = 'output.php'; $link = 'output.html'; symlink($target, $link); lchown($link, 8); ?>NOTESNote This function will not work on remote files as the file to be examined must be accessible via the server's filesystem. Note When safe mode is enabled, PHP checks whether the files or directories being operated upon have the same UID (owner) as the script that is being executed. Note This function is not implemented on Windows platforms.SEE ALSOchown(3), lchgrp(3), chgrp(3), chmod(3). PHP Documentation Group LCHOWN(3)
Related Man Pages |
---|
chgrp(3) - php |
lchgrp(3) - php |
lchown(3p) - minix |
lchown(3p) - x11r4 |
lchown(3p) - plan9 |
Similar Topics in the Unix Linux Community |
---|
change user id from 200 to 202 |
Change owner. |
Shell script to chown for specific user |
How to change the owner of soft link |
File count for symlink using find command |