Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

stream_wrapper_register

Description

The stream_wrapper_register of Stream for PHP 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.

HomeMenu