filesystems - html showing contents of folder -


i creating web page show contents of folder people can view files , download them if needed.

<a href="file:///c:\inetpub\wwwroot\test_pages">click here view folder</a> 

but wanna without coding ever, found code lets me view files. problem facing when double click html page , open hyperlink works , need when access page through server (iis 7) hyperlink nothing ? set permissions or ? can tell me im doing wrong ?

the link work when file want download on own personal computer, in case true if you're showing html file locally. won't true users visiting website computer though.

if want serve file on server, need link path on server itself, is, if file in c:\inetpub\wwwroot\test_pages, href looks this:

<a href="/test_pages">click here view folder</a> 

offcourse, work simple files. folders, need enable webserver show directory contents enabling directory browsing.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -