From 4f9ff2983ad7d945ef2a33e63d7fd71d707cef5a Mon Sep 17 00:00:00 2001 From: Sara Golemon Date: Mon, 31 Mar 2003 21:42:25 +0000 Subject: [PATCH] Add php://filter target git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@121820 c90b9560-bf6c-de11-be94-00142212c4b1 --- appendices/wrappers.xml | 95 +++++++++++++++++++++++++++++++++++++++-- 1 file changed, 92 insertions(+), 3 deletions(-) diff --git a/appendices/wrappers.xml b/appendices/wrappers.xml index a451f924a9..b67ba64e8a 100644 --- a/appendices/wrappers.xml +++ b/appendices/wrappers.xml @@ -1,5 +1,5 @@ - + List of Supported Protocols/Wrappers @@ -93,8 +93,9 @@
PHP input/output streams - PHP 3.0.13 and up, php://output - and php://input since PHP 4.3 + PHP 3.0.13 and up, php://output + and php://input since PHP 4.3, + php://filter since PHP 5.0 @@ -103,6 +104,7 @@ php://stderr php://output php://input + php://filter @@ -128,6 +130,93 @@ php://stderr and php://output are write-only. + + + php://filter is a kind of meta-wrapper designed + to permit the application of filters to a stream at the time of + opening. This is useful with all-in-one file functions such as + readfile, file, and + file_get_contents where there is otherwise + no opporotunity to apply a filter to the stream prior the contents + being read. + + + The php://filter target takes the following + 'parameters' as parts of its 'path'. + + + + + /resource=<stream to be filtered> + (required) This parameter must be located at + the end of your php://filter specification and + should point to the stream which you want filtered. + + + +]]> + + + + + + + /read=<filter list to apply to read chain> + (optional) This parameter takes one or more + filternames separated by the pipe character |. + + + +]]> + + + + + + + /write=<filter list to apply to write chain> + (optional) This parameter takes one or more + filternames separated by the pipe character |. + + + +]]> + + + + + + + /<filter list to apply to both chains> + (optional) Any filter lists which are not + prefixed specifically by read= or + write= will be applied to both the read and + write chains (as appropriate). + + +