PHP funkce stream_wrapper_register()
06. 07. 2020Dostupnost ve verzích: PHP 4.3.2
Register a URL wrapper implemented as a PHP class
Parametry
Parametr | Datový typ | Výchozí hodnota | Poznámka |
---|---|---|---|
$protocol | string | The wrapper name to be registered. | |
$classname | string | The classname which implements the protocol. | |
$flags | int | null | Should be set to STREAM_IS_URL if protocol is a URL protocol. Default is 0, local stream. |
Návratové hodnoty
bool
true on success or false on failure.
stream_wrapper_register will return false if the protocol already has a handler.
Další zdroje
https://php.net/manual/en/function.stream-wrapper-register.php
Jan Barášek Více o autorovi
Autor článku podniká jako fullstack senior developer v Praze. Spravuje 300 různě velkých webových projektů, fungujících dodnes. Během spolupráce nabral hluboké zkušenosti, které na tomto webu předává dál.
Rád vám pomůžu:
Kontakt Konzultace a služby Nabídka spolupráce