Thanks all. **
As far as I know is_dir and is_file require a full path , ...
This did the trick. I kind of assumed that the path info would be understood by is_file() and is_dir().
But explicitly adding the path info solved the problem. Now I have a beautiful array with 38 items just as I need them. JK -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php