i ll try to expain more
for example we have an mp3 file
step 1
read the information on this file (included in id3 tag)
step 2
if we will make a link to the mp3 file the browser gonna first download it then play it
this solution is not recomended i think
There is a solution that alow us to stream the file thats mean read it in the same time that u download it, this second solution seems to be much better
so to do the streamming we have to link to a file ( like .pls or .m3u )
those file are in fact text files contening information about our mp3 file
we can create a "steaming file for each mp3 file we have but i think its a bad solution specially if u have over 6000 file
so if we make a function that generate the content of this file will be much beter
anyway i wrote this function and it works
step 3
making a link to this file (m3u)
the file shouldn t be created on the server but downlowded directly (or uploaded ) to the vister that clics the link
i understood from the documentation of php that the fonction header() - witch is i think badly documeted - could do it i maybe wrong
please try to help me with this problem
here is the link to the header() doc http://www.php.net/manual/en/function.header.php
sorry for my english 🙂 it s just my 4th language 😉