(PECL eio >= 0.0.1dev)
Reads through a whole directory
resource eio_readdir ( string $path, int $flags, int $pri, callable $callback [, string $data = NULL ] )
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