Forum und email

Directory Functions

Introduction

Requirements

Tämän laajennuksen asentaminen ei vaadi ylimääräisiä ohjelmakirjastoja.

Installation

Näiden funktioiden käyttö ei vaadi erillisten ohjelmien asentamista; ne toimitetaan PHP:n mukana.

Runtime Configuration

Tämä laajennus ei määrittele yhtäkään direktiiviä php.inissä.

Resource Types

Predefined Constants

The constants below are defined by this extension, and will only be available when the extension has either been compiled into PHP or dynamically loaded at runtime.

DIRECTORY_SEPARATOR (string)
PATH_SEPARATOR (string)

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

See Also

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