From bb54371cbb5ea4552451e6736866123a6f3aaa9d Mon Sep 17 00:00:00 2001 From: Sara Golemon Date: Fri, 3 Jan 2003 18:17:05 +0000 Subject: [PATCH] Added brief description of user defined filters, fixed CDATA endtag. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@110216 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/stream/reference.xml | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/reference/stream/reference.xml b/reference/stream/reference.xml index 3afa211b09..1e1096036d 100644 --- a/reference/stream/reference.xml +++ b/reference/stream/reference.xml @@ -1,5 +1,5 @@ - + Stream functions Streams @@ -21,6 +21,12 @@ set limit on what can be done with them. See for a listing of stream wrappers built into PHP. + + In addition to streams, support for custom user filters is also available. + While a stream (such as 'http') is designed to communicate with an endpoint, + one or more filters can be placed between the stream and the application to + further process the data as it is read/written. + A stream is referenced as: scheme://target @@ -43,11 +49,6 @@ - - Filters may also be applied to streams to further process data on its - way into or out of a stream related call. Documentation on this - functionality is comming soon. -
@@ -69,8 +70,17 @@
- &reftitle.resources; - &no.resource; + Stream Classes + + User designed wrappers can be registered via stream_register_wrapper, + using the class definition shown on that manual page. + + + class php_user_filter is predefined and is an abstract + baseclass for use with user defined filters. See the manual page for + stream_register_filter for details on implementing + user defined filters. +
@@ -107,7 +117,7 @@ $httpsfile = file_get_contents("https://www.example.com/foo.txt"); // $ftpfile = file_get_contents("ftp://user:pass@ftp.example.com/foo.txt"); // Read remote file from ftp.example.com using FTP $ftpsfile = file_get_contents("ftps://user:pass@ftp.example.com/foo.txt"); // Read remote file from ftp.example.com using FTPS ?> -]]?> +]]>