eio_chown
PHP function
Edit on GitHub ✎
(PECL eio >= 0.0.1dev)
Change file/directory ownership
Description
eio_chown(string $path, int $uid, int $gid = -1, int $pri = EIO_PRI_DEFAULT, callable $callback = NULL, mixed $data = NULL): resource
eio_chown() changes ownership of a file, or directory. The new owner is specified by uid, and the group by gid.
Parameters
pathPath to file or directory.
Relpath
uidUser ID. Is ignored when equal to -1.
gidGroup ID. Is ignored when equal to -1.
priValues
callbackProto
dataArbitrary variable passed to
callback.
Return Values
eio_chown() returns request resource on success,Falseforfailure.