//Public domain - by Philip Jacob setlocale(LC_ALL, CP850); $basedir = "/path/to/your/mp3s/"; $the_array = Array(); $decoded_dir = base64_decode($dir); $handle = opendir($basedir . $decoded_dir); while ($handle && (false !== ($file = readdir($handle))) ) { if ($file != "." && $file != ".." && ( strpos($file, ".") !== 0 )) { $the_array[] = $file; } } closedir($handle); sort ($the_array); reset ($the_array); ?>
">Stream | "> echo iconv("CP850", "ISO-8859-1", $val); ?> | } else { ?>echo iconv("CP850", "ISO-8859-1", $val); ?> | } ?>