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

search for in the

HttpMessage::prepend> <HttpMessage::getType
Last updated: Fri, 30 Jan 2009

view this page in

HttpMessage::guessContentType

(PECL pecl_http >= 1.0.0)

HttpMessage::guessContentTypecontent type を推測する

説明

public string HttpMessage::guessContentType ( string $magic_file [, int $magic_mode = MAGIC_MIME ] )

メッセージ本文の content type を、libmagic を使用して推測します。

パラメータ

magic_file

使用する magic.mime データベース。

magic_mode

libmagic のフラグ。

返り値

成功した場合は推測した content type、 失敗した場合は FALSE を返します。

エラー / 例外

HttpRuntimeException、HttpInvalidParamException をスローします。



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

HttpMessage::prepend> <HttpMessage::getType
Last updated: Fri, 30 Jan 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites