Re: Re: Directory Listing

From: Date: Wed, 26 Aug 2009 12:30:35 +0000
Subject: Re: Re: Directory Listing
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.general 
Request: Send a blank email to php-general+get-297258@lists.php.net to get a copy of this message
2009/8/26 hack988 hack988 <hack988@dev.htwap.com>: > 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

« previous php.general (#297258) next »