XCVIII. Stream functions

Introduction

There are many wrappers built into PHP by default ( See Liite I ) , and additional , custom wrappers may be added either within a PHP script using stream_register_wrapper( ) , or directly from an extension using the API Reference in Luku 43 .

Custom filters can be defined in a PHP script using stream_register_filter( ) or in an extension using the API Reference in Luku 43 .

  • See Liite I for a list of PHP builtin wrappers .

  • Again , see Liite I for a description of targets for builtin streams .



Requirements

These functions are available as part of the standard module , which is always available .

Installation

Runtime Configuration

Tämä laajennus ei määrittele yhtäkään konfigurointi asetusta .

Stream Classes

Predefined Constants



Stream Errors

Examples

Esimerkki 1 .






Esimerkki 2 .






Esimerkki 3 .






Sisällys
stream_context_create -- Create a streams context
stream_context_get_options -- Retrieve options for a stream/wrapper/context
stream_context_set_option -- Sets an option for a stream/wrapper/context
stream_context_set_params -- Set parameters for a stream/wrapper/context
stream_filter_append -- Attach a filter to a stream.
stream_filter_prepend -- Attach a filter to a stream.
stream_get_filters -- Retrieve list of registered filters
stream_get_meta_data -- Retrieves header/meta data from streams/file pointers
stream_get_wrappers -- Retrieve list of registered streams
stream_register_filter -- Register a stream filter implemented as a PHP class derived from php_user_filter
stream_register_wrapper -- Register a URL wrapper implemented as a PHP class
stream_select -- Runs the equivalent of the select() system call on the given arrays of streams with a timeout specified by tv_sec and tv_usec
stream_set_blocking -- Set blocking/non-blocking mode on a stream
stream_set_timeout -- Set timeout period on a stream
stream_set_write_buffer -- Sets file buffering on the given stream