Menu Riverview Church

STREAM_WRAPPER_REGISTER

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.

PHP