What solutions are there to send variables to a text file from php variables?
<p>Essentially I have been trying to think of a PHP-based solution to do the following:</p>

<p>The player needs a link ie:</p>

<p>"http://yourdomain.com/xspf_player.swf?playlist_url=http://yourdomain.com/yourplaylistlist.xspf"></p>

<p>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...</p>

<p>Any ideas other ideas?</p>

<p>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.</p>

<p>The XSPF format is something like this: <a href="http://xspf.org/quickstart/" rel="nofollow">http://xspf.org/quickstart/</a></p>

<p>I hope I have explained this well, if there's anything else you would like me to explain please let me know.</p>

<p>In short, even disregarding the fact that I'm using a database is: </p>

<p>How could I get information from variables into the player if it needs a link to an .xspf file in order to work?</p>
