Re: Package proposal: Mime_type

From: Date: Tue, 03 Jun 2003 11:50:05 +0000
Subject: Re: Package proposal: Mime_type
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-16939@lists.php.net to get a copy of this message
Zitat von Hartmut Holzgraefe <hartmut@php.net>: > > The current implementation of HTTP_WebDAV_Server has some code > in it that is used to identify the MimeType of a file as this > is needed as a standard WebDAV life property > > The code uses ext/mime_magic if available. On Unix-like Systems > it tries to execute the file binary if the mime_magic extension > is not available, and if anything else fails it tries to guess > the mime type for some common file types from their filename > extension > (for Windows one could also think of looking this up in the > registry?) > > This stuff is actually not only related to WebDAV so i think > it deserves a package of its own that would provide a portable > solution for mimetype detection using PHP even on systems > where the mime_magic extension is not available ... Did you take a look at: http://cvs.horde.org/co.php/horde/lib/MIME/Magic.php Jan. -- http://www.horde.org - The Horde Project http://www.ammma.de - discover your knowledge http://www.tip4all.de - Deine private Tippgemeinschaft

« previous php.pear.dev (#16939) next »