1
PHP Directory Functions
Posted by jujur
on
5:46 AM
PHP Directory Functions
PHP Directory Introduction
The directory functions allow you
to retrieve information about directories and their contents.
Installation
The directory functions are part
of the PHP core. There is no installation needed to use these functions.
PHP Directory Functions
PHP: indicates the earliest version of PHP
that supports the function.
Function
|
Description
|
PHP
|
Changes the current directory
|
3
|
|
Changes the root directory of the current process
|
4
|
|
Opens a directory handle and returns an object
|
3
|
|
Closes a directory handle
|
3
|
|
Returns the current directory
|
4
|
|
Opens a directory handle
|
3
|
|
Returns an entry from a directory handle
|
3
|
|
Resets a directory handle
|
3
|
|
Lists files and directories inside a specified path
|
5
|
PHP Directory Constants
PHP: indicates the earliest version of PHP
that supports the constant.
Constant
|
Description
|
PHP
|
DIRECTORY_SEPARATOR
|
|
3
|
PATH_SEPARATOR
|
|
4
|