Availability in versions: PHP 4.3.2
Register a URL wrapper implemented as a PHP class
| 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 |
null | Should be set to STREAM_IS_URL if protocol is a URL protocol. Default is 0, local stream. |
bool
Returns true on success, otherwise false on failure.
stream_wrapper_register will return false if the
protocol already has a handler.
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:
Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.