Forum und email

Directory Functions

簡介

需求

要編譯本擴充功能無需外部函式庫。

安裝

本擴充功能作為 PHP 核心的一部分,無需安裝即可使用。

執行時期設定

本擴充功能在 php.ini 中未定義任何設定選項。

資源類型

預設常數

以下常數由擴充功能定義,因此只有在擴充功能被編譯到 PHP 中,或者在執行時被動態載入後才有效。

DIRECTORY_SEPARATOR (string)
PATH_SEPARATOR (string)

Note: 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.

Table of Contents

  • chdir — Change directory
  • chroot — Change the root directory
  • dir — Return an instance of the 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