Hey everyone, I need some help making a php file that can get input of a filename (mp3 file) and then get the duration of that mp3 file. Let me know if anyone knows anything... thanks!
The place for "I can't figure out how to..." questions.
2 posts • Page 1 of 1
- getID3() v1 developer
- Posts: 1477
- Joined: Fri May 04, 2001 4:00 pm
- Are you a spambot?: no
- Location: Northern Ontario, Canada
Exerpted from /demos/demo.basic.php
Code: Select all
require_once('../getid3/getid3.php'); $getID3 = new getID3; $ThisFileInfo = $getID3->analyze($filename); echo @$ThisFileInfo['playtime_string']; // playtime in minutes:seconds, formatted string