Define :
In this php tutorial we have to learn PHP lchown() Function.basically this funtion is used to changes the user ownership of a symbolic link.
lchown(filename, user)
Parameters
filename |
Required. Specify the path to the symlink to change owner for. |
user |
Required. Specify the new owner. Can be a user name or a user ID. |
Given below example shows the "demo.txt" fille in current working directory.In the example below a symbolic link is created. Then, lchown() function is used to change its owner.
Output :
Symbolic link has been created.
Ownership is successfully changed.