[PHP] how to detect type of image

2007-04-21 Thread Alain Roger
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

Re: [PHP] how to detect type of image

2007-04-21 Thread Tijnema !
On 4/21/07, Alain Roger [EMAIL PROTECTED] 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

Re: [PHP] how to detect type of image

2007-04-21 Thread Edward Vermillion
On Apr 21, 2007, at 5:45 AM, 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