stream_wrapper_register
Description
Register a URL wrapper implemented as a PHP class
Syntax
stream_wrapper_register ( string $protocol , string $classname [, int $flags = 0 ] ) : bool
Parameters
protocol
The wrapper name to be registered.
classname
The classname which implements the protocol.
flags
Should be set to STREAM_IS_URL if protocol is a URL protocol. Default is 0, local stream.
Return
Returns TRUE on success or FALSE on failure.
stream_wrapper_register() will return FALSE if the protocol already has a handler.