XCVIII. Stream functions

Einführung

There are many wrappers built into PHP by default ( See Anhang 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 Kapitel 43 .

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

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

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



Anforderungen

Diese Erweiterung benötigt zur Erstellung keine externen Bibliotheken .

Installation

Laufzeit Konfiguration

Diese Erweiterung definiert keine Konfigurationseinstellungen in der php.ini .

Stream Classes

Vordefinierte Konstanten



Stream Errors

Beispiele

Beispiel 1 .






Beispiel 2 .






Beispiel 3 .






Inhaltsverzeichnis
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