What is Directory in PHP
In this article I am going to explain about directory in PHP.
PHP Directory Functions
The Directory function allow you to manipulate any directory. The directory have many of function, and directory function are part of the PHP core. PHP directory have two constants:
- Directory_Separtor
- Path_Separator
There are different type of functions in PHP directory:
Function |
Description |
chdir |
It changes the current directory. |
chroot |
It changes the root directory |
dir |
It returns an instance of the directory class. |
closedir |
It closes the open directory. |
getcwd |
It gets the current working directory |
opendir |
It open the directory handle. |
readdir |
It read and return entry from directory handle. |
rewinddir |
It resets a directory handle. |
scandir |
It returns list files and directories inside a specified path. |
You may also want to read these related articles :here
Ask Your Question
Got a programming related question? You may want to post your question here
Programming Answers here