Forum Moderators: phranque
The problem is that if I have a list of files in the directory then anyone can access the list of files...and I really don't want to use HTACCESS to limit access...
What are the other ways to do this? What about allowing other sites to get a list of files dynamically (that is, some code on their page that gets a list of files in their directory on my site)? A cross-platform solution (iis/nix) would be great.
Ideas?
TIA!
the only thing as a plattform-independent script running on your webserver should be a php [php.net]-script. php is supported on many plattforms and webservers. it has a filesystem lib build in which will let you code that kind of a directory script in minutes with example code in the php documentation. checkout if you can use php on your webserver.
the other solution is apache based, so any plattform with the apache webserver on it can utilize this. just allow indexes in the specific diretory and you'll get a listing on the fly by accessing the uri of that directory. the directive is:
options +indexes
hope this will help you,
hakre
This may be oversimplified for what you want but you could just create the list on a page on your server and let others just frame it up.
Well, what I'm trying to do is make it available to the website operators but not to the general public...I guess no matter how I do it I'll need some security in there, otherwise third-parties could run the same PHP or whatever to get a list of files...
Anyone know how to do a remote directory listing with a password or other type of authentication?
Oh, and, thanks Hakre.