Re: how to detect type of image

From: Date: Sat, 21 Apr 2007 13:10:40 +0000
Subject: Re: how to detect type of image
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-253427@lists.php.net to get a copy of this message
Alain Roger escreveu:
Hi, In my web application, end user is able to load images (png, jpeg, gif,..) into database. I would like to know how can i detect automatically the type of image (pnd, jpeg,...) ? i do not want to check the extension because this is easily faked... just by renaming it. Does it exist a technique for that ? thanks a lot, function getimagesize:
http://www.educar.pro.br/a/gdlib/index.php?pn=22&tr=97 -- zerof http://www.educar.pro.br/ Apache - PHP - MySQL - Boolean Logics - Project Management ---------------------------------------------------------- Você deve, sempre, consultar uma segunda opinião! ---------------------------------------------------------- Deixe todos saberem se esta informação foi-lhe útil. ---------------------------------------------------------- You must hear, always, one second opinion! In all cases. ---------------------------------------------------------- Let the people know if this info was useful for you! ----------------------------------------------------------

« previous php.general (#253427) next »