directory listing from text file

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

 



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

-- 
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