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 |
---|
lchown(3p) - suse |
chmod(3) - php |
lchown(3) - php |
link(3) - php |
lchown(3p) - plan9 |
Similar Topics in the Unix Linux Community |
---|
chown |
Changing file/directory owner |
Creating conditional symlink |
Tomcat 6.0 fails to read symlink(symbolic link) file |
Remove symlink and target |