This is an old revision of the document!
$files = scandir('./podcast');
rsort($files); // this does the sorting
foreach($files as $file){
$parts = explode('.', $file);
$extension = array_pop($parts);
if ($file != "." && $file != ".." && $extension != 'mp3') {
echo "<b>Podcast:</b> <a href=http://marso.org/podcast.php?name=$file>$file</a><br>";
}
}