Hi,

        Does anyone know if there are functions in PHP or an extension for
getting the mime type (and possibly a description) of ANY kind of
file? I know that the array that the getimagesize() function returns
has an image type field, but I'd like to be able to determine the
appropriate file type for use with a Content-Type: header for any (or
at least the most common) file types, plus be able to pull a
description of the data similar to how the 'file' command works using
the 'magic' file.

        Derek

--
Derek Piper ([EMAIL PROTECTED])
Systems Administrator - Stens Corporation

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to