Summary of commonly used Stream function sets in php

不言
Release: 2023-04-02 22:58:02
Original
2476 people have browsed it

This article mainly introduces the commonly used Stream function set in php, which has certain reference value. Now I share it with everyone. Friends in need can refer to it

stream_bucket_append function: add data to the queue
stream_bucket_make_writeable function: Return 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 stream 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: For the data stream, data packet or context Context setting parameters
stream_copy_to_stream function: Copy operation 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: Register one The filter of the data stream and executed as a PHP class
stream_filter_remove function: remove the filter from a data stream
stream_get_contents function: read the remaining data in the data stream into a string
stream_get_filters function: return already 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 the header/metadata from the 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: registers a URL encapsulation protocol implemented with a PHP class
stream_select function: receives the data stream array and waits for their status to change
stream_set_blocking function: Set a data stream to a blocked or non-blocking state
stream_set_timeout function: Set the timeout for the data stream
stream_set_write_buffer function: Set the buffer for the data stream
stream_socket_accept function: Accept by the function Socket connection created by stream_ socket_server()
stream_socket_client function: Open a Socket connection on 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 a local or network Socket Name
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: log out a URL address packet

The above is the entire content of this article , I hope it will be helpful to everyone’s learning. For more related content, please pay attention to the PHP Chinese website!

Related recommendations:

Introduction to parse_url function in php

How to solve the array left by php after the foreach loop Quote question

The above is the detailed content of Summary of commonly used Stream function sets in php. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!