- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
lchown() function in PHP
The lchown function changes user ownership of symbolic link. The function returns TRUE on success and FALSE on failure.
Note − This function is not implemented on Windows platforms.
Syntax
lchown(file_path, user)
Parameters
file_path − Specify the path of file. Required.
user − Specify user name or number.
Return
The lchown() function returns TRUE on success and FALSE on failure.
Example
<?php $target = new.php'; $mylink = new.html'; symlink($target, $mylink); lchown($mylink, 8); ?>
Output
TRUE
Advertisements