Jump to content

Getting lengths of mp3s without huge time delay


eddy556

Recommended Posts

Hi, I have a PHP script which displays all the mp3 files within a folder to users on a webpage.  I also have another script which reads through each of these files IDE tag in order to display the length of each file next to its name on the webpage.  However this can cause a while for the page to load as it must go thru each file separately and read its tag.  I know there are other sites on the web that do this without long page loads....how do they do this?  I was thinking there must be a way to go through each file say once a day and then when the user views the page they are just viewing the results of the latest 'crawl'.  Any ideas much appreciated.  Thanks

Link to comment
Share on other sites

when the files are uploaded to the site check for its length in time and store that as another column in the database then you are pulling a value from a database instead of waiting for the realtime data everytime

 

hope that helps

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.