simple HTML question
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
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 posted this at 09:52 — 29th August 2005.
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
wwwben posted this at 13:20 — 29th August 2005.
He has: 270 posts
Joined: Jan 2005
hmm.. good question .
bja888 (not verified) posted this at 13:26 — 29th August 2005.
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 posted this at 14:39 — 29th August 2005.
He has: 3,278 posts
Joined: May 2005
please elaborate...
hutch posted this at 11:57 — 30th August 2005.
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 posted this at 12:10 — 30th August 2005.
He has: 412 posts
Joined: May 2005
and it sounded so easy too!
D
<- Post 100!
chrishirst posted this at 19:02 — 30th August 2005.
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 posted this at 10:13 — 1st September 2005.
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 posted this at 10:32 — 1st September 2005.
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.
techniner posted this at 13:44 — 1st September 2005.
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.
Increase your traffic
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.