Songs.xml
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<xml>
<track>
<path>songs/song1.mp3</path>
<title>song 1</title>
</track>
<track>
<path>songs/song2.mp3</path>
<title>song 2</title>
</track>
<track>
<path>songs/song3.mp3</path>
<title>song 3</title>
</track>
<track>
<path>songs/song4.mp3</path>
<title>song 4</title>
</track>
</xml>
I've done a bit of research and found that it mainly points to Javascript, creating an array, randomise the array then write it back into the XML file, or a XML file, or PHP, not sure how to do it, i know Javascript can't save the write the random array back though.
I have no idea how to do this, i only know very basic PHP and javascript.
Any ideas?