Các chức năng của thư mục PHP
Giới thiệu thư mục PHP
Các chức năng thư mục cho phép bạn truy xuất thông tin về các thư mục và nội dung của chúng.
Cài đặt
Các hàm thư mục PHP là một phần của lõi PHP. Không cần cài đặt để sử dụng các chức năng này.
Các chức năng của thư mục 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 |