How can i get the length of a mp3-file?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
philipp
Forum Newbie
Posts: 1
Joined: Tue May 14, 2002 12:04 pm

How can i get the length of a mp3-file?

Post by philipp »

Hi Guys
How can i get the length of a mp3-file (not the bytesize)?
I 'only' need the length of a song, not any other information provided in the IDv1, IDv2 tags
Hope you can help me. I'm getting mad about this problem... 8O
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

how about playing it in winamp with the httpq-plugin (qhttp?)
hmmm....I'm sorry about this post ;)
User avatar
enygma
Site Admin
Posts: 175
Joined: Fri Apr 19, 2002 8:29 am
Location: Dallas, Tx

Post by enygma »

there's a few "MP3 classes" out there that help you read the infomration from the headers, and they're already made....

Look on phpclasses.org or freshmeat.net and see if you can find one...
-enygma
Post Reply