PHP 5 Directory function
PHP Directory Profile
Directory function allows you to get information about the directory and its contents.
installation
PHP Directory functions are part of the PHP core. No installation needed to use these functions.
PHP 5 Directory function
函数 | 描述 |
---|---|
chdir() | 改变当前的目录。 |
chroot() | 改变根目录。 |
closedir() | 关闭目录句柄。 |
dir() | 返回 Directory 类的实例。 |
getcwd() | 返回当前工作目录。 |
opendir() | 打开目录句柄。 |
readdir() | 返回目录句柄中的条目。 |
rewinddir() | 重置目录句柄。 |
scandir() | 返回指定目录中的文件和目录的数组。 |