Can I display a file list rather than render the index page ?
Posted by: Keelie (---.zone5.bethere.co.uk)
Date: October 11, 2009 09:39PM

Having been pointed towards the light by 'toumimi', I have another question.

When I click on localhost on wamp menu, go to 'Your Projects' and click on the folder icon,
the www/your_project/index.php page is launched in my browser.

Any way of changing this action so that rather than the index page opening in the browser,
a file list of the pages is displayed (as happens if I remove 'index.php' to a different folder) ?

Options: ReplyQuote
Re: Can I display a file list rather than render the index page ?
Posted by: stevenmartin99 (---.b-ras2.blp.dublin.eircom.net)
Date: October 11, 2009 09:47PM

exactly... rename that index to menu.php if you need to use it

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Can I display a file list rather than render the index page ?
Posted by: toumimi (---.72.113-78.rev.gaoland.net)
Date: October 11, 2009 11:32PM

Look at .htaccess files to allow directory listing or not.
Here is a quick example of how to do : [www.htmlite.com]

Florian

WampServer Patch (Screenshots)
Topic EN : www.wampserver.com
Topic FR : www.wampserver.com

Options: ReplyQuote
Re: Can I display a file list rather than render the index page ?
Posted by: Keelie (---.zone5.bethere.co.uk)
Date: October 12, 2009 01:01AM

Are you referring to the .htaccess file at : wamp/apps/phpmyadmin3.2.0.1 ???

At present it only has :

# This folder does not require access over HTTP
# (the following directive denies access by default)
Order allow,deny


Do I simply add the lines . . .

Options +Indexes

IndexIgnore *.gif *.jpg

(Don't like messing with files I'm not sure of)

Options: ReplyQuote
Re: Can I display a file list rather than render the index page ?
Posted by: yfastud (Moderator)
Date: October 12, 2009 01:07AM

just simply remove/rename index file in your_project folder it will list files in that folder winking smiley

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: Can I display a file list rather than render the index page ?
Posted by: toumimi (---.11.115-78.rev.gaoland.net)
Date: October 12, 2009 04:46PM

Create your own .htaccess file in folder you want to list.
By doing this, you can still have an index.php file but without effect (not loading automatically).
Follow the url I gave you to know how to do it quickly, or do a search online and get many answers.

Florian

WampServer Patch (Screenshots)
Topic EN : www.wampserver.com
Topic FR : www.wampserver.com

Options: ReplyQuote


Sorry, only registered users may post in this forum.