PHP Manual

PHP function stream_register_wrapper()

2019-09-11T08:04:03.000Z

Availability in versions: PHP 4.3.0

&Alias; stream_wrapper_register

Register a URL wrapper implemented as a PHP class Parameters -------------- | Parameter | Data type | Default value | Note | |-----|-----|-----|-----| | `$protocol` | `string` | *not* | The wrapper name to be registered. | | `$classname` | `string` | *not* | The classname which implements the protocol. | | `$flags` | `int` | *not* | Should be set to STREAM_IS_URL if protocol is a URL protocol. Default is 0, local stream. | Return values ---------------- `bool` Returns `true` on success, otherwise `false` on failure.


stream_wrapper_register will return false if the
protocol already has a handler.

Additional resources

Official stream-register-wrapper documentation

Jan Barášek   Více o autorovi

Autor článku pracuje jako seniorní vývojář a software architekt v Praze. Navrhuje a spravuje velké webové aplikace, které znáte a používáte. Od roku 2009 nabral bohaté zkušenosti, které tímto webem předává dál.

Rád vám pomůžu:

Související články

1.
163.

V jiných jazycích

Status:
All systems normal.
2025