You could keep a database or xml file or even just a text file with a list
of all the images. Your PHP could grab the list, throw it into an array, and
use array_rand() on it

Jacob

On 7/12/07, chuck sheya <[EMAIL PROTECTED]> wrote:

There are 17 folders each with around 10 images named 1.jpg, 2.jpg, ect.
so
that when I update the images they are in the correct order.
-chuck

On 7/12/07, Wade Preston Shearer <[EMAIL PROTECTED]> wrote:
>
> > I have been commissioned to create a website for the USU Photo
> > Guild. I have
> > next to no background with php but I would like to have the
> > homepage display
> > a random image taken by the members of the guild. I hear php is the
> > best way
> > to go. The problem I've ran into is that I have created a separate
> > folder
> > for each of the students to keep things organized. I have found
> > quite a few
> > ways to display a random image if all images are in the same folder
> > but I
> > cant find how to do it to support sub folders. Any help would be
> > amazing. A
> > link to somewhere showing how would be tops. Thanks.
>
> For starters, will you know how many images there will be and what
> the names of the files will be?
>
>
>
> _______________________________________________
>
> UPHPU mailing list
> [email protected]
> http://uphpu.org/mailman/listinfo/uphpu
> IRC: #uphpu on irc.freenode.net
>
>

_______________________________________________

UPHPU mailing list
[email protected]
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net




--
Jacob Wright
Within Code LLC

_______________________________________________

UPHPU mailing list
[email protected]
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net

Reply via email to