Name
opendir
Synopsis
resource opendir(string path
[, resource context])
Opens the directory path
and returns
a directory handle for the path that is suitable for use in subsequent
readdir()
, rewinddir()
, and closedir()
calls. If
path
is not a valid directory, if
permissions do not allow the PHP process to read the directory, or if
any other error occurs, false
is
returned.
Get Programming PHP, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.