PHP Stream Functions
PHP Stream Introduction
Streams are the way of generalizing file, network, data compression, and
other operations which share a common set of functions and uses. In its simplest
definition, a stream is a resource object which exhibits streamable behavior.
That is, it can be read from or written to in a linear fashion, and may be able
to fseek() to an arbitrary location within the stream.
A wrapper is
additional code which tells the stream how to handle specific
protocols/encodings.
Installation
The Stream functions are part of the PHP core. There is no installation needed to use these functions.
PHP Stream Functions
Function | Description |
---|---|
set_socket_blocking() | Deprecated in PHP 5.4, and removed in PHP 7.0. Alias of stream_set_blocking() |
stream_bucket_prepend() | |
stream_context_create() | |
stream_context_get_default() | |
stream_context_get_options() | |
stream_context_get_params() | |
stream_context_set_default() | |
stream_context_set_options() | |
stream_context_set_params() | |
stream_copy_to_stream() | Copies data from one stream to another |
stream_filter_append() | Appends a filter to a stream |
stream_filter_prepend() | |
stream_filter_register() | |
stream_filter_remove() | |
stream_get_contents() | |
stream_get_filters() | |
stream_get_line() | |
stream_get_meta_data() | |
stream_get_transports() | |
stream_get_wrappers() | |
stream_is_local() | |
stream_isatty() | |
stream_notification_callback() | |
stream_register_wrapper() | Alias of stream_wrapper_register() |
stream_resolve_include_path() | |
stream_select() | |
stream_set_blocking() | |
stream_set_chunk_size() | |
stream_set_read_buffer() | |
stream_set_timeout() | |
stream_set_write_buffer() | |
stream_socket_accept() | |
stream_socket_client() | |
stream_socket_enable_crypto() | |
stream_socket_get_name() | |
stream_socket_pair() | |
stream_socket_recvfrom() | |
stream_socket_sendto() | |
stream_socket_server() | |
stream_socket_shutdown() | |
stream_supports_lock() | |
stream_wrapper_register() | |
stream_wrapper_restore() | |
stream_wrapper_unregister() |