Gen. partnerAlgotech

PHP function stream_register_wrapper()

|
September 11, 2019

Availability in versions: PHP 4.3.0

&Alias; stream_wrapper_register

Register a URL wrapper implemented as a PHP class

Parameters

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 not Should be set to STREAM_IS_URL if protocol is a URL protocol. Default is 0, local stream.

Return values

bool

Returns true on success, otherwise false on failure.

stream_wrapper_register will return false if the protocol already has a handler.

Additional resources

Official stream-register-wrapper documentation

Loading comments...

Stay in the loop

Subscribe to our newsletter and get the latest cybersecurity news delivered straight to your inbox.

Your data is safe. You can unsubscribe from the newsletter at any time.