|
Answer» hello i have a very SIMPLE web server running at my house and have written most of the html from scratch, yes I do mean notepad =). my question: is there anyway i can list the file contents inside a folder without typing out a new link everytime? any help would be greatly appreciated, thanksBest way to do it is using PHP. I'm not going to go into detail (too much info), but you can do it with PHP. www.php.net well, i've tried looking for what i WANT but can't find it.. so LINKS to a site where i have to go find exactly what im looking for is kinda of pointless for me.. which is basically why im here.. kind of a "all else failed" type situation.
maybe "detail" would be nice.okay, check out this link.... http://us.php.net/manual/en/function.readdir.php I think that's the php function you would want to use. It retrieves a list of files in a directory and inserts it into an array. Then, you will have to make the php script walk through the array, PRINTING each element as it goes.
If you look through www.phpbuilder.net, you may be able to find a FULL script already written that you can just copy and paste.
|