I got boored today so I decided to write this up 🙂 I wrote a class that will retrieve the sample rate (kbps), frequency (kHz), length (filesize and time in seconds) and some other misc stuff. To see what it can gather:
http://project802.net/mp3/example.php
and to download it:
http://project802.net/mp3/mp3header.class
I tested under PHP4, but should work just fine under PHP3. I also think I will put in ID3 tag decoding in later versions. Tell me how it works out for you.
-Chris