XXIII. Directory Functions

需求

建立這個延伸不需要任何外部程式庫。

安裝

這些函數是PHP核心的一部分,不需要安裝就可使用。

執行時期組態

php.ini中沒有定義此延伸的組態指令。

預先定義常數

以下的常數由此延伸定義,只在這個延伸被編譯成PHP或實行時期被動態載入時有效。

DIRECTORY_SEPARATOR (string)

PATH_SEPARATOR (string)

注: The PATH_SEPARATOR was introduced with PHP 4.3.0-RC2.

參考

For related functions such as dirname(), is_dir(), mkdir(), and rmdir(), see the Filesystem section.

內容目錄
chdir -- Change directory
chroot -- Change the root directory
dir -- directory class
closedir -- close directory handle
getcwd -- gets the current working directory
opendir -- open directory handle
readdir -- read entry from directory handle
rewinddir -- rewind directory handle
scandir --  List files and directories inside the specified path