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.
There are no user contributed notes for this page.
