Home  >  Article  >  Backend Development  >  php stream function set

php stream function set

WBOY
WBOYOriginal
2016-07-25 08:56:50845browse
This article collects some function sets related to stream data flow in PHP. Friends in need can refer to it.

php stream function set, as follows:

stream_bucket_append function: add data to the queue stream_bucket_make_writeable function: returns a data object from the operation queue stream_bucket_new function: Create a new data for the current queue stream_bucket_prepend function: prepare data to the queue stream_context_create function: Create a data flow context stream_context_get_default function: Get the default data flow context stream_context_get_options function: Get the settings of the data stream stream_context_set_option function: Set the data stream, data packet or context stream_context_set_params function: Set parameters for data stream, packet or context stream_copy_to_stream function: copy between data streams stream_filter_append function: add a filter to the data stream stream_filter_prepend function: Add a filter to the data stream preparation stream_filter_register function: registers a data stream filter and executes it as a PHP class stream_filter_remove function: removes a filter from a data stream stream_get_contents function: Read the remaining data in the data stream into a string stream_get_filters function: returns a list of registered data stream filters stream_get_line function: Get the line from the data stream resource according to the given delimiter stream_get_meta_data function: Get header/metadata from encapsulated protocol file pointer stream_get_transports function: returns the registered Socket transmission list stream_get_wrappers function: returns the registered data stream list stream_register_wrapper function: Register a URL wrapper protocol implemented with a PHP class stream_select function: receives an array of data streams and waits for their status to change stream_set_blocking function: Set a data stream to a blocking or non-blocking state stream_set_timeout function: Set timeout for data stream stream_set_write_buffer function: Set the buffer for the data stream stream_socket_accept function: accepts the Socket connection created by the function stream_socket_server() stream_socket_client function: Open the Socket connection of the network or UNIX host stream_socket_enable_crypto function: Turn on or off data encryption for a connected Socket stream_socket_get_name function: Get the name of local or network Socket stream_socket_pair function: Create two indistinguishable Socket data stream connections stream_socket_recvfrom function: Get data from Socket, regardless of whether it is connected or not stream_socket_sendto function: Send data to Socket, regardless of whether it is connected or not stream_socket_server function: Create a network or UNIX Socket server stream_wrapper_restore function: restore a previously logged-out data packet stream_wrapper_unregister function: Unregister a URL address package


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn