PHP 5 Directory Functions

PHP Directory Introduction

The index capacities enable you to recover data about catalogs also, their contents.


The PHP index capacities are a piece of the PHP center. No establishment is required to utilize these functions.

PHP 5 Directory Functions

Function Description
chdir() Changes the current directory
chroot() Changes the root directory
closedir() Closes a registry handle
dir() Returns an example of the Directory class
getcwd() Returns the present working directory
opendir() Opens a registry handle
readdir() Returns a passage from a registry handle
rewinddir() Resets a registry handle
scandir() Returns a variety of records and registries of a predetermined directory