(PHP 4, PHP 5, PHP 7)
Open directory handle
resource opendir ( string $path [, resource $context ] )
Opens up a directory handle to be used in subsequent closedir(), readdir(), and rewinddir() calls.
Parameters:
path
The directory path that is to be opened
context
For a description of the context parameter, refer to the streams section