Hello Everyone
Does anyone know of a program (script) that can generate xml playlists for the flash music player.
I have 150 playlist to create and having to type out the path is starting to become way to much work.
oh it's for a network website.
Thanks in advance.
XML Playlist Creator
XML Playlist Creator
NZXT Appollo Case
DFI Intel Blood Iron Infinity P35-T2RL
Core Duo E7500
Corsair XMS2 Low-Latency Memory - DDR2-667MHz - 4GB Kit
Seagate St3250815AS Sata HDD
GTS250 256MB DDR3
Divoom Comet T1 5.1 Speakers
DFI Intel Blood Iron Infinity P35-T2RL
Core Duo E7500
Corsair XMS2 Low-Latency Memory - DDR2-667MHz - 4GB Kit
Seagate St3250815AS Sata HDD
GTS250 256MB DDR3
Divoom Comet T1 5.1 Speakers
Re: XML Playlist Creator
If the network is php enabled you can use the following code to create the information
That should generate the xml file with a list of songs in a folder.
Code: Select all
<?php
$dir = "images/surveillance";
echo "<?xml version='1.0' encoding='UTF-8'?>\n";
echo "<playlist>\n";
if (is_dir($dir)) {
if ($d = opendir($dir)){
while (($file = readdir($d))!== false){
if (filetype($dir.'/'.$file) == 'file'){
echo " <song fname=\"folder/{$file}\"/>\n";
//$vars .= "song fname=".$file;
//echo $vars;
}
}
closedir($d);
}
}
echo "</playlist>\n";
?>