Please wait while we load your page...

PasswordSentry

Latest Version [8.00202205221] Last Updated [May-22-2022]

Tools

PHP Manual [eio_readdir]

Protect Your Website Today


PHP Manual || Eio Functions

(PECL eio >= 0.0.1dev)

eio_readdirReads through a whole directory

Description

eio_readdir ( string $path , int $flags , int $pri , callable $callback [, string $data = NULL ] ) : resource

Reads through a whole directory(via the opendir, readdir and closedir system calls) and returns either the names or an array in result argument of callback function, depending on the flags argument.

Parameters

path

Directory path.

flags

Combination of EIO_READDIR_* constants.

pri

The request priority: EIO_PRI_DEFAULT, EIO_PRI_MIN, EIO_PRI_MAX, or NULL. If NULL passed, pri internally is set to EIO_PRI_DEFAULT.

callback

callback function is called when the request is done. It should match the following prototype:

void callback(mixed $data, int $result[, resource $req]);


PHP Manual || Eio Functions