simple HTML question

He has: 18 posts

Joined: Jul 2005

Im trying to find the code for a simple directory structure. For example I just want a graphic display of the contents of a folder for ease of access. Any help is appreciated

02bunced's picture

He has: 412 posts

Joined: May 2005

You would need to use something like PHP to pass variables to HTML, but I wouldn't know exactly how to do it.

David

He has: 270 posts

Joined: Jan 2005

hmm.. good question .

They have: 5,633 posts

Joined: Jan 1970

Do you want the folders to change dynamically? (collapse and expand) Or do you want them to tree and stay the same?

demonhale's picture

He has: 3,278 posts

Joined: May 2005

please elaborate...

He has: 18 posts

Joined: Jul 2005

Sorry all, I want the directory tree visible, and a click just brings the next level. Very simple. Thanks.

02bunced's picture

He has: 412 posts

Joined: May 2005

and it sounded so easy too!

D

<- Post 100!

chrishirst's picture

He has: 379 posts

Joined: Apr 2005

and we still have no idea what server side code

here's one in ASP Directory Tree

Busy's picture

He has: 6,151 posts

Joined: May 2001

am confused so am guessing the problem - if you have no settings for your folders anyone can view them, you can make the view dymanic or just as standard. easiest way would not to use any of the default pages, index, home, default (.html or .htm)

02bunced's picture

He has: 412 posts

Joined: May 2005

That wouldn't work if it was set up to 403 when there weren't any default pages - I know all my web hosts set up that way. Sad

They have: 19 posts

Joined: May 2005

With a Mix of Javascript to dis play rollovers or how ever you wanted it to look & PHP you can easily create this tree..

have a look at this function:

http://us3.php.net/manual/en/function.pathinfo.php

Rather then an echo to display it you could use a DHTML or javascript method to show it as grpahical tree parsed with pathinfo vars.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.