On January 3, 2003 12:18 pm, Michael Montero wrote:
> Is there a built in function in PHP that mimicks the UNIX file command?
> For instance, I run :
>
> file blah.jpg
>
> and I get this:
>
> blah.jpg: JPEG image data, JFIF standard 1.01, resolution (DPI), 72 x 72

For identifying images there is already getimagesize() that will fetch 
information about number of commonly used file formats.
There is also a mime_magic extension that uses the same database as the one 
used by UNIX file command to identify a variety of files.

Ilia


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to