Curt Zirzow wrote:

You should really consider using the fileinfo extension, or mabey
even  http://php.net/getimagesize.  The ['type'] information
can't be trusted to be what it says it is.

Any reason why no one is suggesting the use of mime_content_type? http://ca.php.net/mime_content_type

It seems to work well for me and there's no need to trust whatever the browser claims a file is or having to worry about different browsers inconsistently describing a mime type.

- Ben

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

Reply via email to