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']?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php