PHP directory functions allows interaction with the system directories/folders. They are used to dealing with both folders and the folder’s content.
No installation is required for using the directory functions. They are part of the core language.
chdir() | Modify the current directory |
chroot() | Modify the root directory |
closedir() | Close a directory handle |
dir() | Get an instance of the Directory class |
getcwd() | Get the current working directory |
opendir() | Open a directory handle |
readdir() | Get an entry from a directory handle |
rewinddir() | Reset a directory handle |
scandir() | Get an array of files and directories of a specified directory |