!strstr($file, '.html') refers to all files with a .html ending but how do you refer to all directories in that command?
<?
$absolute_path = "/home/rocky/public_html/sounds";
$dl = "http://www.digtialvideofuel.com";
$dir = opendir($absolute_path);
while ($file = readdir($dir))
{
if (($file != "..") && ($file != ".") && !strstr($file, '.php') && !strstr($file, '.html'))
{
$list .= "<a href='$dl/$file'>$file</a><br>";
}
}
echo $list;
?>
That is my code, but I don' want the list to include the directories listed in that folder.
Thanks in advance!