Instead of implementing a potentially expensive and in all likelihood unreliable method of figuring out which is which, why not store the MIME type in the database?
HTH
In reply to Re: getting mime type from file content
by arturo
in thread getting mime type from file content
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |