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: Tue, 17 Nov 2009

view this page in

HttpMessage::guessContentType

(PECL pecl_http >= 1.0.0)

HttpMessage::guessContentTypeİçerik türü tahmin edilmeye çalışılır

Açıklama

public string HttpMessage::guessContentType ( string $sihirli_dosya [, int $sihirli_kip = MAGIC_MIME ] )

İleti gövdesinin içerik türü libmagic sayesinde tahmin edilmeye çalışılır.

Değiştirgeler

sihirli_dosya

Kullanılacak magic.mime veritabanı.

sihirli_kip

Libmagic seçenekleri.

Dönen Değerler

Başarı durumunda tahmin edilen içerik türü, aksi takdirde FALSE döner.

Hatalar/İstisnalar

HttpRuntimeException, HttpInvalidParamException istisnaları yakalanır.



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: Tue, 17 Nov 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites