PHP Basic
PHP HOMEPHP Intro
PHP Install
PHP Syntax
PHP Variables
PHP String
PHP Operators
PHP If...Else
PHP Switch
PHP Arrays
PHP While Loops
PHP For Loops
PHP Functions
PHP Forms
PHP $_GET
PHP $_POST
PHP Advanced
PHP DatePHP Include
PHP File
PHP File Upload
PHP Cookies
PHP Sessions
PHP E-mail
PHP Secure E-mail
PHP Error
PHP Exception
PHP Filter
PHP Database
MySQL IntroductionMySQL Connect
MySQL Create
MySQL Insert
MySQL Select
MySQL Where
MySQL Order By
MySQL Update
MySQL Delete
PHP ODBC
PHP XML
XML Expat ParserXML DOM
XML SimpleXML
PHP and AJAX
AJAX IntroAJAX PHP
AJAX Database
AJAX XML
AJAX Live Search
AJAX RSS Reader
AJAX Poll
PHP Reference
PHP ArrayPHP Calendar
PHP Date
PHP Directory
PHP Error
PHP Filesystem
PHP Filter
PHP FTP
PHP HTTP
PHP Libxml
PHP Mail
PHP Math
PHP Misc
PHP MySQL
PHP SimpleXML
PHP String
PHP XML
PHP Zip
PHP Quiz
PHP QuizPHP Certificate
PHP Directory Functions
| « Previous | Next Chapter » |
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 |
| « Previous | Next Chapter » |
