stream_wrapper_register()
stream_wrapper_register - Register a URL wrapper implemented as a PHP class
Syntax
bool stream_wrapper_register (
string $protocol,
string $classname,
int $flags)
Arguments
- 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.
Description
Allows you to implement your own protocol handlers and streams for use with all the other filesystem functions (such as fopen(), fread() etc.).
Version
PHP 4.3.2, 5
Return value
Returns TRUE on success or FALSE on failure.