PHP Manual
Prev |  | Next

# php_stream_opendir

php_stream_opendir -- Open a directory for file enumeration

## Description

php_stream * php_stream_opendir ( char * path, php_stream_context * context )

php_stream_opendir() returns a stream that can be used to list the files that are contained in the directory specified by path. This function is functionally equivalent to POSIX opendir(). Although this function returns a php_stream object, it is not recommended to try to use the functions from the common API on these streams.

Prev | Home | Next
Streams Dir API Reference | Up | php_stream_readdir