PHP Manual
Function Reference
File System Related Extensions
Directories
Installing/Configuring
Predefined Constants
Directory
Directory Functions
Directory::rewind
chdir
Directories
PHP Manual
Directory Functions
See Also
For related functions such as
dirname
,
is_dir
,
mkdir
, and
rmdir
, see the
Filesystem
section.
Table of Contents
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