Code: Select all
$file = fopen("file.xml","r");
$a = array();
while(! feof($file)){
array_push($a, fgets($file) );
}
print_r($a);
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<player showDisplay="yes" showPlaylist="yes" autoStart="random">
<song path="http://www.website.com/Music/song1.mp3" title="song1" />
<song path="http://www.website.com/Music/song2.mp3" title="song2" />
</player>