You are here: Re: how to safety upload jpeg « PHP Language « IT news, forums, messages
Re: how to safety upload jpeg

Posted by Rik on 02/04/07 14:43

Gene <ox.gene@wp.pl> wrote:

> how can i check if file which user upload at server is truly jpeg, and
> is not hacking script 'script.php' which name was changed at
> script.jpg. checking mime type doesn't solve it?

I usually abuse getimagesize() for that.


--
Rik Wasmus

 

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

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