Click to See Complete Forum and Search --> : show files
I am having a complete blank out here, how would i make a page that shows all the files in that folder. For example, say i have a directory /files and want to make a page that displays all the files in that folder in a list..any suggestions?
Thanks
Mach
tabzter
06-22-2006, 08:39 PM
Read up on webservers! They allow you the ability to share certain directories to other ppl on the internet. What you are asking cannot be done with HTML as HTML is designed to be secure and allowing ppl to acccess your directories isnt very secure.
Howkasam
09-14-2006, 02:03 PM
This script is posted elsewhere on the forum but that was in 2004. If you are in the INDEX page it just shows the page but if you are in another directory it lists the files. I have tried this and it works great. I use it at my website at:
http://www.kumeyaay.org/Words/Words.htm
What I want it do is send this to memory but now is just creats HTML and displays it. I want the HTML to go into a memory variable so I can play with it. Does anyone know how to do this?
<!-- Original: Dan Worsham -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
var myloc = window.location.href;
var locarray = myloc.split("/");
delete locarray[(locarray.length-1)];
var arraytext = locarray.join("/");
document.location=arraytext;
// End -->