PHP 5 Directory関数
PHP Directory 概要
Directory 関数を使用すると、ディレクトリとその内容に関する情報を取得できます。
インストール
PHP Directory 関数は PHP コアの一部です。インストールなしでこれらの関数を使用できます。
PHP 5 Directory 関数
| 関数 | 説明 |
|---|---|
| chdir() | 現在のディレクトリを変更します。 |
| chroot() | ルートディレクトリを変更します。 |
| closedir() | ディレクトリハンドルを閉じます。 |
| dir() | Directory クラスのインスタンスを返します。 |
| getcwd() | 現在の作業ディレクトリを返します。 |
| opendir() | ディレクトリハンドルを開きます。 |
| readdir() | ディレクトリハンドルからエントリを返します。 |
| rewinddir() | ディレクトリハンドルをリセットします。 |
| scandir() | 指定したディレクトリ内のファイルとディレクトリの配列を返します。 |