Hi all!
I found this thread which is along the lines of what I need:
http://www.phpbuilder.com/board/showthread.php?threadid=10262852&highlight=directory+contents
which basically gives me the following code:
<?
$dir = "testimages/";
if (is_dir($dir)) {
if ($dh = opendir($dir))
{
while (($file = readdir($dh)) !== false)
{
# output links to the files
print '<br/><A HREF="'.$dir.$file.'">'.$file.'</a>';
}
closedir($dh);
}
}
?>
however when I carry it out it also links me to . & .. i.e. the root and $dir, how could I get rid of that?
Also I'd like to only display certain file types, for example only .swfs ?
Any help anyone can give would be greatly appreciated🙂
Taff L