Song Test Page

[insert_php]

echo hello(“Hello”) . “
”;

$dir = $_SERVER[‘DOCUMENT_ROOT’].”/wp-content/uploads”;

echo $dir . “
”;

$files = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($dir));

$csv = “Not found=(“;

fore­ach ($files as $file) {
if(strpos($file, ‘songs.csv’)) {
$csv = $file;
break;
}
}

echo $csv;

[/insert_php]