Please wait while we load your page...


Latest Version [8.00202205221] Last Updated [May-22-2022]


PHP Manual [Directory Functions]

Protect Your Website Today

PHP Manual || Directories

For related functions such as dirname(), is_dir(), mkdir(), and rmdir(), see the Filesystem section.

  • chdir — Change directory
  • chroot — Change the root directory
  • closedir — Close directory handle
  • dir — Return an instance of the Directory class
  • getcwd — Gets the current working directory
  • opendir — Open directory handle
  • readdir — Read entry from directory handle
  • rewinddir — Rewind directory handle
  • scandir — List files and directories inside the specified path

PHP Manual || Directories