You are here: directory listing from text file « PHP « IT news, forums, messages
directory listing from text file

Posted by Dreiph on 10/02/39 11:16

Hello,

I have a plain text file with the following direcory listing:

\first
\second
\third
\third\first
\third\first\first
\third\first\second
\third\second
\third\second\first
\third\second\second
\fourth

How can I get directory tree from this and using Javascript or DHTML display
such view:


* first
* second
* third
|---first
| |---first
| |---second
|--(+)second
* fourth

I tried creating very interesting arrays, but don't know how exactly an
array should be sorted

Any ideas?

Bye,
Dreiph

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация