PHP
downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

mailparse_uudecode_all> <mailparse_rfc822_parse_addresses
Last updated: Fri, 30 Jan 2009

view this page in

mailparse_stream_encode

(PHP 4 >= 4.0.7, PECL mailparse:0.9-2.1.1)

mailparse_stream_encode ソースファイルポインタからストリームデータを取得し、 エンコーディングを適用し、出力ファイルポインタに書き込む

説明

bool mailparse_stream_encode ( resource $sourcefp , resource $destfp , string $encoding )

ソースファイルポインタからストリームデータを取得し、 encoding を適用して それを出力ファイルポインタに書き込みます。

パラメータ

sourcefp

有効なファイルハンドル。このファイルからのストリームがパーサに流し込まれます。

destfp

エンコードしたデータを書き込むファイルハンドル。

encoding

mbstring モジュールがサポートする文字エンコーディングのいずれか。

返り値

成功した場合に TRUE を、失敗した場合に FALSE を返します。

例1 mailparse_stream_encode() の例

<?php

// email.eml の中身は: hello, this is some text=hello.
$fp fopen('email.eml''r');

$dest tmpfile();

mailparse_stream_encode($fp$dest"quoted-printable");

rewind($dest);

// ファイルの内容を表示します
fpassthru($dest);

?>

上の例の出力は以下となります。

hello, this is some text=3Dhello.



add a note add a note User Contributed Notes
mailparse_stream_encode
There are no user contributed notes for this page.

mailparse_uudecode_all> <mailparse_rfc822_parse_addresses
Last updated: Fri, 30 Jan 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites