توابع پوشه PHP

PHP Directory Introduction

Directory Functions allow you to obtain information about directories and their contents.

Install

PHP Directory Functions are an integral part of PHP's core. These functions can be used without installation.

PHP 5 Directory Functions

Function Description
chdir() Change the current directory.
chroot() Change the root directory.
closedir() Close the directory handle.
dir() Return an instance of the Directory class.
getcwd() Return the current working directory.
opendir() Open the directory handle.
readdir() Return the entries in the directory handle.
rewinddir() Reset the directory handle.
scandir() Return an array of files and directories in the specified directory.