Availability in versions: PHP 4.3.0
&Alias;
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.
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:
Články píše Jan Barášek © 2009-2025 | Kontakt | Mapa webu
Status | Aktualizováno: ... | en