2009/8/26 hack988 hack988 <hack988@xxxxxxxxxxxxx>: > your means "Health and Safety Questionnaire"is directory? > so you want it display like this > full dir path <<tab>> filename<<tab>>date > Yes. I did try using if(is_dir($file)) { insert tab } but couldn't get it to work. Also tried counting the length of the $file value and and comparing it to the position of the first "/" using strpos and if they matched then assume it was a directory but couldn't get it to work either. Out of the 2000 files there are less than 50 directories so it wasn't too much trouble to go through and sort them out manually but I'd love to hear a way of doing it properly -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php