Easy Tutorial
❮ Php Constant Arrays Func String Localeconv ❯

PHP 5 Directory Functions


PHP Directory Introduction

Directory functions allow you to obtain information about directories and their contents.


Installation

PHP Directory functions are part of the PHP core. No installation is required to use these functions.


PHP 5 Directory Functions

Function Description
chdir() Changes the current directory.
chroot() Changes the root directory.
closedir() Closes the directory handle.
dir() Returns an instance of the Directory class.
getcwd() Returns the current working directory.
opendir() Opens a directory handle.
readdir() Returns the entries in the directory handle.
rewinddir() Resets the directory handle.
scandir() Returns an array of files and directories from the specified directory.
❮ Php Constant Arrays Func String Localeconv ❯