I have some images in bin, I want to check the header to check the format (jpg, png, etc)
I don\'t want to use temp files! I have a solution using TEMP FILES.
Are the files being uploaded or are they already on the file system?
Try using mime_content_type() to get the file's MIME format.
mime_content_type()