eio_chmod
PHP function
Edit on GitHub ✎
(PECL eio >= 0.0.1dev)
Change file/directory permissions
Description
eio_chmod(string $path, int $mode, int $pri = EIO_PRI_DEFAULT, callable $callback = NULL, mixed $data = NULL): resource
eio_chmod() changes file, or directory permissions. The new permissions are specified by mode.
Parameters
pathPath to the target file or directory
Relpath
modeThe new permissions. E.g.
0644.priValues
callbackProto
dataArbitrary variable passed to
callback.
Return Values
eio_chmod() returns request resource on success,Falseforfailure.