$dir = opendir("./records");
while ($file[] = readdir($dir)) {
}
$num_files = count ($file);
for ($idx = 0; $idx < $num_files -1; ++$idx)
{
if ($idx < 2) {
echo (""); }
else {
echo ("<A HREF=\"records/$file[$idx]\">$file[$idx]</A> <A HREF=\"delete.php?file=$file[$idx]\">Delete</A><BR>");
}
}
Above is the code I am using to display a listing of all files within a certain folder. My query is this
Is there any way, using this or other code to display specific file within a certain folder....example, if I wanted to display just all the .html files.
I guess I am looking for help with code to getfile specific listings
Can anyone help or know what I am tlaking about?