PHP Function to get MP3 duration October 11, 2022 by Tarik This should work for you, notice the getduration function: http://www.zedwood.com/article/127/php-calculate-duration-of-mp3