stream_wrapper_register

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

説明

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

戻り値

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