Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

stream_context_set_option(3) [php man page]

STREAM_CONTEXT_SET_OPTION(3)						 1					      STREAM_CONTEXT_SET_OPTION(3)

stream_context_set_option - Sets an option for a stream/wrapper/context

SYNOPSIS
bool stream_context_set_option (resource $stream_or_context, string $wrapper, string $option, mixed $value) DESCRIPTION
bool stream_context_set_option (resource $stream_or_context, array $options) Sets an option on the specified context. $value is set to $option for $wrapper PARAMETERS
o $stream_or_context - The stream or context resource to apply the options to. o $options - The options to set for the default context. Note $options must be an associative array of associative arrays in the format $arr['wrapper']['option'] = $value. Refer to context options and parameters for a listing of stream options. RETURN VALUES
Returns TRUE on success or FALSE on failure. PHP Documentation Group STREAM_CONTEXT_SET_OPTION(3)

Check Out this Related Man Page

STREAMWRAPPER(3)							 1							  STREAMWRAPPER(3)

The streamWrapper class

INTRODUCTION
Allows you to implement your own protocol handlers and streams for use with all the other filesystem functions (such as fopen(3), fread(3) etc.). Note This is NOT a real class, only a prototype of how a class defining its own protocol should be. Note Implementing the methods in other ways then described here can lead to undefined behaviour. An instance of this class is initialized as soon as a stream function tries to access the protocol it is associated with. CLASS SYNOPSIS
streamWrapper streamWrapper Properties o public resource$context Methods o streamWrapper::__construct (void ) o streamWrapper::__destruct (void ) o public bool streamWrapper::dir_closedir (void ) o public bool streamWrapper::dir_opendir (string $path, int $options) o public string streamWrapper::dir_readdir (void ) o public bool streamWrapper::dir_rewinddir (void ) o public bool streamWrapper::mkdir (string $path, int $mode, int $options) o public bool streamWrapper::rename (string $path_from, string $path_to) o public bool streamWrapper::rmdir (string $path, int $options) o public resource streamWrapper::stream_cast (int $cast_as) o public void streamWrapper::stream_close (void ) o public bool streamWrapper::stream_eof (void ) o public bool streamWrapper::stream_flush (void ) o public bool streamWrapper::stream_lock (int $operation) o public bool streamWrapper::stream_metadata (string $path, int $option, mixed $value) o public bool streamWrapper::stream_open (string $path, string $mode, int $options, string &$opened_path) o public string streamWrapper::stream_read (int $count) o public bool streamWrapper::stream_seek (int $offset, int $whence = SEEK_SET) o public bool streamWrapper::stream_set_option (int $option, int $arg1, int $arg2) o public array streamWrapper::stream_stat (void ) o public int streamWrapper::stream_tell (void ) o public bool streamWrapper::stream_truncate (int $new_size) o public int streamWrapper::stream_write (string $data) o public bool streamWrapper::unlink (string $path) o public array streamWrapper::url_stat (string $path, int $flags) PROPERTIES
o resource $context - The current context, or NULL if no context was passed to the caller function. Use the stream_context_get_options(3) to parse the context. Note This property must be public so PHP can populate it with the actual context resource. CHANGELOG
+--------+------------------------------+ |Version | | | | | | | Description | | | | +--------+------------------------------+ | 5.0.0 | | | | | | | Added the context property. | | | | +--------+------------------------------+ SEE ALSO
o"Example class registered as stream wrapper" ostream_wrapper_register(3) ostream_wrapper_unregister(3) ostream_wrapper_restore(3) PHP Documentation Group STREAMWRAPPER(3)
Man Page