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 |
| chdir() |
Changes the current directory |
3 |
| chroot() |
Changes the root directory of the current process |
4 |
| dir() |
Opens a directory handle and returns an object |
3 |
| closedir() |
Closes a directory handle |
3 |
| getcwd() |
Returns the current directory |
4 |
| opendir() |
Opens a directory handle |
3 |
| readdir() |
Returns an entry from a directory handle |
3 |
| rewinddir() |
Resets a directory handle |
3 |
| scandir() |
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 |
Create a free Flash website with our simple, online web design editing platform. Stunning templates
and user-friendly tools make website building easy and fun.
Start Creating your free website now!

Whether you're new to XML or already an advanced user, the user-friendly views and powerful entry helpers, wizards, and debuggers in XMLSpy are designed to meet your XML and Web development needs from start to finish.
New features in Version 2010!
- XML editor
- Graphical XML Schema / DTD editors
- XSLT 1.0/2.0 editor, debugger, profiler
- XQuery editor, debugger, profiler
- XBRL validator, taxonomy editor, taxonomy wizard
- Support for Office Open XML (OOXML)
- Graphical WSDL 1.1/2.0 editor & SOAP debugger
- JSON editing & conversion
- Java, C#, C++ code generation
- 32-bit and 64-bit versions
- And much more!
Download a free trial today!
|
|
|
|