XCVIII. Stream functions

Introductie

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

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



Afhankelijkheden

Deze functies zijn beschikbaar als onderdeel van de standard module die altijd beschikbaar is .

Installatie

Configuratie tijdens scriptuitvoer

Deze extensie gebruikt geen configuratie regels .

Stream Classes

Voorgedefineerde constanten



Stream Errors

Voorbeelden

Voorbeeld 1 .






Voorbeeld 2 .






Voorbeeld 3 .






Inhoudsopgave
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