eddy556 Posted July 16, 2007 Share Posted July 16, 2007 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 https://forums.phpfreaks.com/topic/60283-getting-lengths-of-mp3s-without-huge-time-delay/ Share on other sites More sharing options...
paul2463 Posted July 16, 2007 Share Posted July 16, 2007 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 https://forums.phpfreaks.com/topic/60283-getting-lengths-of-mp3s-without-huge-time-delay/#findComment-299883 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.