Hello, I'm working on a project and cannot figure out a way to find out the track length of my mp3s. The files play fine when accessed directly but I cannot figure out a way to return the tracklength. Request: Create a function that returns the track length of a mp3 when passing in a url of an mp3. The time format must me mm:ss. The code must be done in PHP. Please message me for urls for mp3. Need this job completed today. Cheers, Rick
GetID3 is definitely the thing to use. You can cut out almost the entire library to reduce size and load time, but once you've got that library loaded, it should be only a few lines of code to get the track length from the metadata super array.