Pruebalo asi:
Código PHP:
Ver original<?php
header("Content-type: text/xml"); $directorio = glob('mp3/Vallenatos/*.mp3');
echo '<?xml version="1.0" encoding="UTF-8"?>' . PHP_EOL;
echo '<player showDisplay="yes" showPlaylist="yes" autoStart="yes">';
foreach ($directorio as $archivo) {
echo '<song path="' . $archivo. '" title="' . $file[0] . '" />' . PHP_EOL;
}
echo '</player>';