mp3 file streaming/download - apache server memory issue

Posted by Manolis on Programmers See other posts from Programmers or by Manolis
Published on 2012-06-11T19:39:12Z Indexed on 2012/06/11 22:46 UTC
Read the original article Hit count: 423

Filed under:
|
|

I have a website, in which users can upload mp3 files (uploadify), stream them using an html5 player (jplayer) and download them using a php script (www.zubrag.com/scripts/).

When a user uploads a song, the path to the audio file is saved in the database and i'm using that data in order to play and show a download link for the song. The problem that i'm experiencing is that, according to my host, this method is using a lot of memory on the server, which is dedicated.

Link to script: http://pastebin.com/Vus8SRa7

How should I handle the script properly? And what would be the best way to track down the problem? Any ideas on cleaning up the code?

Any help much appreciated.

© Programmers or respective owner

Related posts about php

Related posts about mysql