Hi,
I have
<pre>
$dirHandle=opendir('c:\phpdev\www\starinthecar\gallery\spgm\gal\Gallery');
while ($file = readdir($dirHandle))
{
if (stristr($file, ".jpg"))
{
echo "<center><table border=1 width=300><tr><td width=100><font face=verdana size=2><a href=http://200.200.1.3/starinthecar/comments/comments.php?filename=",$file,"><img src=http://200.200.1.3/starinthecar/gallery/spgm/gal/Gallery/thb",$file,"></A></font></td><td width=200><font face=verdana size=2>",$file,"</font></tr></table></center>";
}
}
closedir($dirHandle);
</pre>
which looks through my directory and displys thumbnails to pass to another page.
The problem is the folder also has .jpg.cmt files and Jpg's that start with thb that I do not want displayed.
I am so confused, could someone tell me which functions to use to just get a list of files that do not start with thb and do not end with .jpg.cmt. I just want the jpg's.
Help appreciated