Jump to content

Directory Indexing inside my html page


Script200

Recommended Posts

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

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.