Hello everyone and thank you for your time. I would just like to say that even though I'm no noobie at php, I don't know everything yet and I still lack some knowledge to be able to tackle some of these problems.
My current dilemma is:
I have a database with user-made songs that have all kinds of information including the location of said songs. The way I have it working is I have a php script that echos a xspf playlist document for a flash player to read for whoever is browsing the songs. (the best part being that the player doesn't care that it's a php file as long as it receives the correct xml format).
The problem is that anybody can look at the source (for example find that the player uses xspf.php?=song_id=10), and the php file will output everything in plain text. How could I hide or encrypt the location of the mp3 from users but still be able for the player to work properly?
I will also in the future have users be able to download tracks but I want to find a way to hide the location or maybe if it isn't too hard generate a temporary url? Do share what you think is best to tackle this problem.
And again thanks in advance for any responses!