Dutch PHP Conference 2025 - Call For Papers

streamWrapper::mkdir

(PHP 5, PHP 7, PHP 8)

streamWrapper::mkdirCreate a directory

Опис

public streamWrapper::mkdir(string $path, int $mode, int $options): bool

This method is called in response to mkdir().

Зауваження:

In order for the appropriate error message to be returned this method should not be defined if the wrapper does not support creating directories.

Параметри

path

Directory which should be created.

mode

The value passed to mkdir().

options

A bitwise mask of values, such as STREAM_MKDIR_RECURSIVE.

Значення, що повертаються

Повертає true у разі успіху або false в разі помилки.

Помилки/виключення

Виводить E_WARNING, якщо цей метод не вдалося викликати (напр. не реалізований).

Примітки

Зауваження:

Властивість streamWrapper::$context оновиться, якщо передано правильний контекст до функції виклику.

Прогляньте також

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top