Changes the owner of a file or directory.
Description
Default behavior is to do nothing, override this in your subclass, if desired.
Parameters
$filestringrequired- Path to the file or directory.
$ownerstring|intrequired- A user name or number.
$recursivebooloptional- If set to true, changes file owner recursively.
Default:
false
Source
public function chown( $file, $owner, $recursive = false ) {
return false;
}
Changelog
| Version | Description |
|---|---|
| 2.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.