PHP funkce stream_register_wrapper()
Dostupnost ve verzích: PHP 4.3.0
&Alias;
Register a URL wrapper implemented as a PHP class
Parametry
| Parametr | Datový typ | Výchozí hodnota | Poznámka |
|---|---|---|---|
$protocol |
string |
není | The wrapper name to be registered. |
$classname |
string |
není | The classname which implements the protocol. |
$flags |
int |
není | Should be set to STREAM_IS_URL if protocol is a URL protocol. Default is 0, local stream. |
Návratové hodnoty
bool
vrátí true v případě úspěchu, jinak false v případě neúspěchu.
stream_wrapper_register will return false if the protocol already has a handler.