PHP 디렉토리 함수
PHP 디렉토리 소개
디렉토리 기능을 사용하면 디렉토리 및 해당 내용에 대한 정보를 검색할 수 있습니다.
설치
PHP 디렉토리 기능은 PHP 코어의 일부입니다. 이러한 기능을 사용하기 위해 설치가 필요하지 않습니다.
PHP 디렉토리 함수
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 |