PHP Velho Oeste 2024

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

There are no user contributed notes for this page.
To Top