Re: Re: Directory Listing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux