Forum Moderators: coopster

Message Too Old, No Replies

Kind of image that is in the server

For upload is $_FILES["photo"]["type"]; and for the ones that were already

         

romzinho2k7

10:43 am on May 26, 2006 (gmt 0)

10+ Year Member



Good morning...

How Can I know the kind of the image what is in the server? When we do upload is alone to put $_FILES["photo"]["type"];

And to do it know the ones that are it already in the server? Do remind what all are the images renames for .JPG?

Sorry my english.
I am learning...

Thanks

eelixduppy

10:50 am on May 26, 2006 (gmt 0)



Try mime_content_type [us3.php.net]

romzinho2k7

11:04 am on May 26, 2006 (gmt 0)

10+ Year Member



Thank you! :)

whoisgregg

2:11 pm on May 26, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Using getimagesize [php.net] provides both the file type for images and other handy info like height and width. Plus, it returns false for non-images which is also useful if all you need to handle is images.