XCVIII. Stream functions

Introducción

There are many wrappers built into PHP by default ( See Apéndice 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 Capítulo 43 .

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



Requerimientos

Estas funciones están disponibles como parte del módulo estandar , el cual está siempre disponible .

Instalación

Configuración en tiempo de ejecución

Esta extensión no define ninguna directiva de configuración .

Stream Classes

Constantes predefinidas



Stream Errors

Ejemplos

Ejemplo 1 .






Ejemplo 2 .






Ejemplo 3 .






Tabla de contenidos
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