無料スクリプト配布のPHP.TO   PHPの実用的なtips PHPマニュアル MySQLマニュアル Apacheマニュアル PostgreSQLマニュアル マニュアル検索    

stream_filter_append

(PHP 4 >= 4.3.0, PHP 5)

stream_filter_append??????

resource stream_filter_append ( resource $stream , string $filtername [, int $read_write [, mixed $params ]] )

filtername ????? stream ????????

??

stream

???????

filtername

???

read_write

????? stream_filter_append() ???????? (????? r ? + ?) ?? ???? ? ???????(????? w a?+ ?) ??????? STREAM_FILTER_READ STREAM_FILTER_WRITE STREAM_FILTER_ALL read_write???????????

params

????? params ?? ???????????? ????????stream_filter_prepend() ??

?

??? ??stream_filter_remove() ???????????????

?

5.1.0 PHP 5.1.0 ???? TRUE ? FALSE ??

1 ????

<?php
/* ????? */
$fp fopen('test.txt''w+');

/* ROT13 ????????
 * ???????*/
stream_filter_append($fp"string.rot13"STREAM_FILTER_WRITE);

/* ????
 * ??? ROT13 ???
 */
fwrite($fp"This is a test\n");

/* ?? */
rewind($fp);

/* ????
 * ????????
 * ????? ROT13 ??
 * ????? */
fpassthru($fp);

fclose($fp);

/* ?
   ---------------

Guvf vf n grfg

 */
?>

: ()????
?? filtername ????? ? stream_filter_register() ???? ???

: ???????????? ??????????? ????????? stream_filter_prepend() ?????

: ?????????????? 2 ?????? STREAM_FILTER_READ STREAM_FILTER_WRITE stream_filter_append() 2 ?????



powered by SEO.CUG.NET