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

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

path

Path to file or directory.

Relpath

uid

User ID. Is ignored when equal to -1.

gid

Group ID. Is ignored when equal to -1.

pri

Values

callback

Proto

data

Arbitrary variable passed to callback.

Return Values

eio_chown() returns request resource on success,Falseforfailure.

See Also

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