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. Link to comment https://forums.phpfreaks.com/topic/209983-directory-indexing-inside-my-html-page/ 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. Link to comment https://forums.phpfreaks.com/topic/209983-directory-indexing-inside-my-html-page/#findComment-1096026 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? Link to comment https://forums.phpfreaks.com/topic/209983-directory-indexing-inside-my-html-page/#findComment-1096131 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.