Essentially I have been trying to think of a PHP-based solution to do the following:
The player needs a link ie:
“http://yourdomain.com/xspf_player.swf?playlist_url=http://yourdomain.com/yourplaylistlist.xspf“>
I could easily put the XSPF information in a PHP file and replace the artist name / song name with variables that retrieve the data from the database. The thing I can’t wrap my head around is how I’m going to feed it to the player and make it a link if it needs to be .xspf format…
Any ideas other ideas?
I’ve only thought of making a txt file every time it to play a song… But then that brings the problem that if there’s a lot of users using it there would be so much unnecessary writing to the hard drive.
The XSPF format is something like this: http://xspf.org/quickstart/
I hope I have explained this well, if there’s anything else you would like me to explain please let me know.
In short, even disregarding the fact that I’m using a database is:
How could I get information from variables into the player if it needs a link to an .xspf file in order to work?
If I understand you correctly, all you need to do is set the content type of the PHP file to be something else.
Then you can create the PHP file in whatever way you want. It won’t (shouldn’t) matter to the player that the extension is “php” instead of “xspf”.