Page 1 of 1

Custom directory...

Posted: Mon Feb 28, 2005 3:16 pm
by Todd_Z
How do i make a custom directory page when there is no index.php?

Posted: Mon Feb 28, 2005 3:19 pm
by Dale
How do you mean? Like how you make a differnet one of these lists: Click

Posted: Mon Feb 28, 2005 3:36 pm
by feyd
hmm.. I'll hazard a guess and say.. mod_rewrite

Posted: Mon Feb 28, 2005 3:37 pm
by Todd_Z
right, i want to make a custom page for that...

Posted: Mon Feb 28, 2005 4:44 pm
by Chris Corbyn
mod_rewrite for a redirect if there is no index.

Redirect to somefile.php

Read up on file functions (namely opendir() and readdir() ) then make a start and we'll see how you get on.

The manual has an example of how to use readdir() to get the list of files quite convieniently enough if i remember correctly :? :D

Posted: Mon Feb 28, 2005 6:56 pm
by Todd_Z
how does one use this so called "mod_rewrite"

Posted: Mon Feb 28, 2005 6:58 pm
by feyd