php8.5
Home/ Manual/ eio / functions/ eio_chmod

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

path

Path to the target file or directory

Relpath

mode

The new permissions. E.g. 0644.

pri

Values

callback

Proto

data

Arbitrary variable passed to callback.

Return Values

eio_chmod() returns request resource on success,Falseforfailure.

See Also

Source: reference/eio/functions/eio-chmod.xml · from the official PHP manual (php/doc-en)