opendir
mixed opendir(string dir) Returns a resource pointer for use by the readdir() , rewinddir() , or closedir() functions.
Returns:
Resource pointer on success; FALSE on error
Description:
opendir() opens directory dir and returns a resource pointer to a read-only directory stream. (The term stream refers to a communication channel to a file, process, or device.) The resource pointer is used by readdir(), rewinddir(), and closedir() to manipulate the directory stream.
The function returns FALSE if the open_basedir configuration directive is set and directory dir is not below a directory specified in open_basedir. FALSE is also returned if a directory stream for the directory could not be opened.
Note:
If opendir() fails because a directory ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access