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

search for in the

実行時設定> <要件
[edit] Last updated: Fri, 25 May 2012

view this page in

インストール手順

警告

Mimetype 拡張モジュールは PHP 5.3.0 で削除されました。後継は Fileinfo です。

mime-type 関数をサポートするためには、configure スイッチ --with-mime-magic を付けて PHP をコンパイルする必要があります。この拡張モジュールは、 Apache httpd と共に配布されているシンプル版の magic ファイルのコピーを必要とします。

注意:

configure オプションは、PHP 4.3.2 以降 --enable-mime-magic から --with-mime-magic に変更されています。

注意:

この拡張モジュールには、付加機能が多くついた magic ファイルを処理する機能はありません(この magic ファイルは、標準的なLinuxディストリビューションに付属しており、 最近のバージョンの file コマンドで使用されている ようです)。

注意: Win32 ユーザーへの注意

このモジュールを Windows 環境で使用するには、バンドルされた magic.mime へのパスを php.ini に設定する必要 があります。

例1 magic.mime のパスの設定例

mime_magic.magicfile = "$PHP_INSTALL_DIR\magic.mime"

上の例の $PHP_INSTALL_DIR を実際の PHP のパス、例えば、c:\php に置き換えてください。



add a note add a note User Contributed Notes インストール手順
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites