Script200 Posted August 6, 2010 Share Posted August 6, 2010 Hi, How can I show the content of a directory, which is used for file uploading, inside my html page? Basically so I don't have to add a link to the directory without a good way to get, other than clicking back of course. Usually it would go mysite.com/filedirectory/ and than it would show the content of that directory only I want it to show that inside my for example filedirectory.html page. How can I do that? Thanks. Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted August 6, 2010 Share Posted August 6, 2010 You wont be able to list the contents of a directory with HTML. You're going to need to use a server side language like PHP for this. PHP has many functions for iterating through a directories contents, for example DirectoryIterator class. Quote Link to comment Share on other sites More sharing options...
Script200 Posted August 6, 2010 Author Share Posted August 6, 2010 Ah ok, thanks. Do you have or know such a script and how I could implement it into my website? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.