[PHP] Mime Magic functions - how standard are they?

2007-10-03 Thread Dave M G
PHP List, I would like to set up a function within my system that can test a file that a user has uploaded and determine what kind of file it is. My intention is to only handle a fairly small number of common file types*, so I don't think I need to build anything too robust. Of course, I

Re: [PHP] Mime Magic functions - how standard are they?

2007-10-03 Thread mike
On 10/3/07, Dave M G [EMAIL PROTECTED] wrote: So, ultimately, what I'm wondering is, what should I be using in order to determine file MIME types that will be the most commonly installed on servers with PHP? I wrote something that does system(file -iNr $file) which gives you the