Hey cool, thanks. Now I have one more question (and thats it!! I promise!!! well... until I need help again that is) I allready tried it (so I know it dosne't work) is there a way to do that and find 2 diffrent file types? example:
if (substr($file,-4)==".gif" && substr($file,-4)==".txt") {
echo "$file";
}
I know that dosen't work cause I allready tried it.