0% found this document useful (0 votes)
22 views1 page

PHP Directory Introduction: Function Description

This document provides an introduction to PHP directory functions, which allow retrieving information about directories and their contents. No installation is required as these functions are part of the PHP core. It then lists common directory functions like chdir(), opendir(), readdir(), and scandir(), along with brief descriptions of what each function does.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views1 page

PHP Directory Introduction: Function Description

This document provides an introduction to PHP directory functions, which allow retrieving information about directories and their contents. No installation is required as these functions are part of the PHP core. It then lists common directory functions like chdir(), opendir(), readdir(), and scandir(), along with brief descriptions of what each function does.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

PHP Directory Introduction

The directory functions allow you to retrieve information about directories and their contents.
Installation
The PHP directory functions are part of the PHP core. No installation is required to use these functions.
PHP 5 Directory Functions
Function Description
chdir() Changes the current directory
chroot() Changes the root directory
closedir() Closes a directory handle
dir() Returns an instance of the Directory class
getcwd() Returns the current working directory
opendir() Opens a directory handle
readdir() Returns an entry from a directory handle
rewinddir() Resets a directory handle
scandir() Returns an array of files and directories of a specified directory

You might also like