stream_wrapper_register

Example

 bool stream_wrapper_register ( string $protocol , string $classname [, int $flags = 0 ] ) 

Description

Allows you to implement your own protocol handlers and streams for use with all the other filesystem functions (such as fopen(), fread() etc.).

Return Values

Returns TRUE on success or FALSE on failure. stream_wrapper_register() will return FALSE if the protocol already has a handler.