I have put together a nice php based mp3 server that serves mp3's based out of a directory structure. Currently, it will try to serve any file in the tree as an mp3. I am looking for a way to check a file, and determine whether or not it is a valid mpg, mp2, or mp3 file without looking at the file extension. Does anyone know how to do this, or have a script that will make this possible?
Thanks
~Corey O.~