Forum Moderators: phranque

Message Too Old, No Replies

Extracting MP3 Info from ID3 tags

For use in PHP scripts

         

TheLynxEffect

7:05 am on Mar 13, 2002 (gmt 0)



It's been a while! My first post for, Oh, say too long! Anyway, I'm not really sure where to put this, so I'll slap it in here and wait for it to be moved :p

My question is this: I need to be able to extract the information from ID3 tags from MP3's and be able to use them in a PHP script to send them to a MySQL d/b. I've scoured the internet looking for any info, but I can't really find anything remotely useful.

Anyone know of any inbuilt PHP functions which do this (unlikely) or does anyone have a breakdown of what's actually _IN_ an ID3 tag and how to go about extracting the info?

As always, any help appreciated!

It's good to be back,

Sticky a.k.a. TLE

gethan

10:26 am on Mar 13, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



[php.net...]

If you nip down to the user comments you'll see someone has been thinking along the same lines. There's a function that should do what you need - no idea how well it works.

Good luck.

TheLynxEffect

5:18 am on Mar 19, 2002 (gmt 0)



I really should check my posts more often! lol

Thanks gethan that was just what I needed. It works well! It does the trick. Now I need to work out how to get the bitrate out of the file. Hmm!

Anyway, thanks for the tip-off,

Sticky aka TLE