I've been looking for this for ages!
I want to find out the duration of an mp3 file from a remote server e.g. http://www.example.com/sound.mp3
Now before you guys start replying with getid3, i already know about this but unfortunately getid3 requires the mp3 file to be on YOUR server before it can read the file, so that don't work.
I've read on places on the internet that you can trick php into acting like the file is on the server (temp directory maybe) or something?
I really need this for my project badly and there is no way i can download 100,000 mp3 to my server just to check the duration!
P.S. Guys! please test your code before suggesting them (Please?)
I want to find out the duration of an mp3 file from a remote server e.g. http://www.example.com/sound.mp3
Now before you guys start replying with getid3, i already know about this but unfortunately getid3 requires the mp3 file to be on YOUR server before it can read the file, so that don't work.
I've read on places on the internet that you can trick php into acting like the file is on the server (temp directory maybe) or something?
I really need this for my project badly and there is no way i can download 100,000 mp3 to my server just to check the duration!
P.S. Guys! please test your code before suggesting them (Please?)