note 57490 added to function.stream-get-filters

From: Date: Wed, 05 Oct 2005 18:53:20 +0000
Subject: note 57490 added to function.stream-get-filters
Groups: php.notes 
Request: Send a blank email to php-notes+get-96451@lists.php.net to get a copy of this message
Filters to be used within the convert filter are base64-encode, base64-decode, quoted-printable-encode and quoted-printable-decode. Note: those are not in the string filter, as currently reported by the manual! Example usage is: <?php $h = fopen('gecodeerd.txt', 'r'); stream_filter_append($h, 'convert.base64-decode'); fpassthru($h); fclose($h); ?> Or <?php $filter = 'convert.base64-decode'; $file = 'coded.txt'; $h = fopen('php://filter/read=' . $filter . '/resource=' . $file,'r'); fpassthru($h); fclose($h); ?> ---- Manual Page -- http://www.php.net/manual/en/function.stream-get-filters.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+57490 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+57490&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+57490&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+57490&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+57490&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+57490&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+57490&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+57490&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+57490&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#96451) next »