Re: Re: how to detect type of image

From: Date: Sun, 22 Apr 2007 15:37:49 +0000
Subject: Re: Re: how to detect type of image
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-253490@lists.php.net to get a copy of this message
On Sunday 22 April 2007 17:35, Jonathan wrote: > Alain Roger wrote: > > 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, > > Is there anything wrong with just using $_FILES['upload_name']['type']? read 8 lines further up -- --- Børge http://www.arivene.net ---

« previous php.general (#253490) next »