HttpResponse::guessContentTypeとは? わかりやすく解説

Weblio 辞書 > コンピュータ > PHP関数リファレンス > HttpResponse::guessContentTypeの意味・解説 

HttpResponse::guessContentType

(No version information available, might be only in CVS)
HttpResponse::guessContentType — content type を推測する

説明

static string HttpResponse::guessContentType ( [string magic_file [, int magic_mode=MAGIC_MIME]] )
指定された本文の content type を、libmagic を使用して推測します。
推測に成功すると、その結果の content type が自動的にレスポンスの content type として設定されます。

パラメータ

magic_file
使用する magic.mime データベース。
magic_mode
libmagic のフラグ。

返り値

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

エラー / 例外

HttpRuntimeException、HttpInvalidParamException をスローします。


このページでは「PHP関数リファレンス」からHttpResponse::guessContentTypeを検索した結果を表示しています。
Weblioに収録されているすべての辞書からHttpResponse::guessContentTypeを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からHttpResponse::guessContentType を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「HttpResponse::guessContentType」の関連用語

HttpResponse::guessContentTypeのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



HttpResponse::guessContentTypeのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
PHP Documentation GroupPHP Documentation Group
Copyright © 1997 - 2025 by the PHP Documentation Group.

©2025 GRAS Group, Inc.RSS