XCVIII. Stream functions

Úvod

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

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

  • See I for a list of PHP builtin wrappers .

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



Požadavky

Tyto funkce jsou k dispozici jako součást standardního modulu , který je vždy dostupný .

Instalace

Konfigurace běhu

Toto rozšíření nemá definováno žádné konfigurační direktivy .

Stream Classes

Předdefinované konstanty



Stream Errors

Příklady

Příklad 1 .






Příklad 2 .






Příklad 3 .






Obsah
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