Hi.
I've have this code
to read a dir and make an array of only the jpg-files in that dir:
$handle = opendir($fdir);
while ($file = readdir($handle))
{
$files[] = $file;
}
closedir($handle);
for($i=0;$i<sizeof($files);$i++)
{
$strip = split ('[.]', $files[$i]);
if($strip[1] != 'jpg')
{
unset( $files[$i] );
}
}
sort($files);
This get rid og the "." and ".." but all other files remain in the $files-array ( like x.gif, x.txt).
Can anyone guide me in the right direction - Haven't got the GD so I can't use exif_commands
Best regards
Flemming