Better PHP Documentation
opinionated
Open main menu
Get Started
Documentation
Community
Training
Better PHP Documentation
Close menu
Get Started
Documentation
Community
Training
Log in
Change language:
English
German
Spanish
French
Italian
Japanese
Brazilian Portuguese
Russian
Turkish
Ukrainian
Chinese (Simplified)
Other
Streams
Introduction
Installing/Configuring
Stream Classes
Predefined Constants
Stream Filters
Stream Contexts
Stream Errors
Examples
Example class registered as stream wrapper
php_user_filter
β The php_user_filter class
php_user_filter::filter
β Called when applying the filter
php_user_filter::onClose
β Called when closing the filter
php_user_filter::onCreate
β Called when creating the filter
streamWrapper
β The streamWrapper class
streamWrapper::__construct
β Constructs a new stream wrapper
streamWrapper::__destruct
β Destructs an existing stream wrapper
streamWrapper::dir_closedir
β Close directory handle
streamWrapper::dir_opendir
β Open directory handle
streamWrapper::dir_readdir
β Read entry from directory handle
streamWrapper::dir_rewinddir
β Rewind directory handle
streamWrapper::mkdir
β Create a directory
streamWrapper::rename
β Renames a file or directory
streamWrapper::rmdir
β Removes a directory
streamWrapper::stream_cast
β Retrieve the underlying resource
streamWrapper::stream_close
β Close a resource
streamWrapper::stream_eof
β Tests for end-of-file on a file pointer
streamWrapper::stream_flush
β Flushes the output
streamWrapper::stream_lock
β Advisory file locking
streamWrapper::stream_metadata
β Change stream metadata
streamWrapper::stream_open
β Opens file or URL
streamWrapper::stream_read
β Read from stream
streamWrapper::stream_seek
β Seeks to specific location in a stream
streamWrapper::stream_set_option
β Change stream options
streamWrapper::stream_stat
β Retrieve information about a file resource
streamWrapper::stream_tell
β Retrieve the current position of a stream
streamWrapper::stream_truncate
β Truncate stream
streamWrapper::stream_write
β Write to stream
streamWrapper::unlink
β Delete a file
streamWrapper::url_stat
β Retrieve information about a file
Stream Functions
stream_bucket_append
β Append bucket to brigade
stream_bucket_make_writeable
β Returns a bucket object from the brigade to operate on
stream_bucket_new
β Create a new bucket for use on the current stream
stream_bucket_prepend
β Prepend bucket to brigade
stream_context_create
β Creates a stream context
stream_context_get_default
β Retrieve the default stream context
stream_context_get_options
β Retrieve options for a stream/wrapper/context
stream_context_get_params
β Retrieves parameters from a context
stream_context_set_default
β Set the default stream context
stream_context_set_option
β Sets an option for a stream/wrapper/context
stream_context_set_options
β Sets options on the specified context
stream_context_set_params
β Set parameters for a stream/wrapper/context
stream_copy_to_stream
β Copies data from one stream to another
stream_filter_append
β Attach a filter to a stream
stream_filter_prepend
β Attach a filter to a stream
stream_filter_register
β Register a user defined stream filter
stream_filter_remove
β Remove a filter from a stream
stream_get_contents
β Reads remainder of a stream into a string
stream_get_filters
β Retrieve list of registered filters
stream_get_line
β Gets line from stream resource up to a given delimiter
stream_get_meta_data
β Retrieves header/meta data from streams/file pointers
stream_get_transports
β Retrieve list of registered socket transports
stream_get_wrappers
β Retrieve list of registered streams
stream_is_local
β Checks if a stream is a local stream
stream_isatty
β Check if a stream is a TTY
stream_notification_callback
β A callback function for the notification context parameter
stream_register_wrapper
β Alias of stream_wrapper_register
stream_resolve_include_path
β Resolve filename against the include path
stream_select
β Runs the equivalent of the select() system call on the given arrays of streams with a timeout specified by seconds and microseconds
stream_set_blocking
β Set blocking/non-blocking mode on a stream
stream_set_chunk_size
β Set the stream chunk size
stream_set_read_buffer
β Set read file buffering on the given stream
stream_set_timeout
β Set timeout period on a stream
stream_set_write_buffer
β Sets write file buffering on the given stream
stream_socket_accept
β Accept a connection on a socket created by stream_socket_server
stream_socket_client
β Open Internet or Unix domain socket connection
stream_socket_enable_crypto
β Turns encryption on/off on an already connected socket
stream_socket_get_name
β Retrieve the name of the local or remote sockets
stream_socket_pair
β Creates a pair of connected, indistinguishable socket streams
stream_socket_recvfrom
β Receives data from a socket, connected or not
stream_socket_sendto
β Sends a message to a socket, whether it is connected or not
stream_socket_server
β Create an Internet or Unix domain server socket
stream_socket_shutdown
β Shutdown a full-duplex connection
stream_supports_lock
β Tells whether the stream supports locking
stream_wrapper_register
β Register a URL wrapper implemented as a PHP class
stream_wrapper_restore
β Restores a previously unregistered built-in wrapper
stream_wrapper_unregister
β Unregister a URL wrapper
Found A Problem?
Learn How To Improve This Page
β’
Submit a Pull Request
β’
Report a Bug
οΌ
add a note
User Contributed Notes
There are no user contributed notes for this page.
0
pcntl_sigtimedwait
Waits for signals, with a timeout
0
similar_text
Calculate the similarity between two strings
0
boolval
Get the boolean value of a variable
0
curl_multi_close
Close a set of cURL handles
0
imap_body
Read the message body
0
mb_strpos
Find position of first occurrence of string in a string
0
pg_send_prepare
Sends a request to create a prepared statement with the given parameters, without waiting for completion
0
swoole_native_socket_bind
0
Arr::prependKeysWith
0
zend_version
Gets the version of the current Zend engine
^