You are here: Re: [PHP] Is there an alternative for $_FILES['guildimage']['type'] == "image/jpeg" « PHP « IT news, forums, messages
Re: [PHP] Is there an alternative for $_FILES['guildimage']['type'] == "image/jpeg"

Posted by Ben on 11/23/05 20:45

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация