(541) 926-8683 charlie@kgal.com

Lebanon Warriors Game Audio Files

Warriors Game Audio Files

(Football, Basketball)

 

$directory = ‘sites/default/files/podcasts’;
$filename_link = ”;
$base = base_path();

if ( ! is_dir($directory)) {
exit(‘Invalid diretory path’);
}

$files = array();

foreach (array_reverse(scandir($directory)) as $file) {
if (‘.’ === $file) continue;
if (‘..’ === $file) continue;

$files[] = $file;
if (preg_match(‘/WARRIORS/’, $file)){
$filename_link .= ‘

‘;
}
//echo $file;
}

echo ‘

    • ‘;

 

    • echo $filename_link;

 

    echo ‘

‘;
//var_dump($files);
?>