PDA

View Full Version : Read audio file information with PHP



Alan
09 Apr 2008, 07:52 PM
This is probably advanced stuff but maybe someone will know.

I need to read the media information embedded into audio files, such as artist, album etc... with a PHP script. Any ideas how I would achieve that? Might have something to do with streams. Not sure though.

Any help would be appreciated. Thanks in advance. :-)

meatspin
01 May 2008, 07:14 PM
Hi Alan

I've done this before, I used a class project called getID3() you can download it from http://getid3.sourceforge.net/ and there are plenty of Copy & Paste examples that come with it. There is also a PECL package called id3, which I'd personally avoid, seems quite immature and development seems to have ceased.

If you want to read shoutcast streams then search phpclasses for 'shoutcast class'.