Msg#: 3895948 posted 8:13 am on Apr 20, 2009 (gmt 0)
I have a directory on my webserver that I use to test out scripts or pages that I'm writing (usually in PHP). As there are a lot of files in this directory, and I almost always have at least one of them named index.php or .html I was curious if it's possible to force my web browser to display a directory listing as opposed to pulling up that directory's default page.
For instance, the /scripts directory on my server has several useful little things I've written but I cannot always remember the filename of what I'm looking for without having to FTP in to find out. Because I currently have an index.php file in this directory, it always pulls up. Sure, I could delete that file; but I'd prefer to know if there's a way to make the browser grab a directory listing when I tell it to. That'd come in handy all the time.
Is there a way in any of the browsers to do this? Let me know if clarification is required. I may not have explained what it is I'm trying to do very well. :)
Msg#: 3895948 posted 8:22 am on Apr 24, 2009 (gmt 0)
what you should do is create a simple script to list the contents of a directory, name it Sootahs-directory-lister.php or something more obscure and put it in your test directory. (which should be password protected, right?) then request http://example.com/test-directory/Sootahs-directory-lister.php in your browser.
I cannot always remember the filename of what I'm looking for without having to FTP in to find out