MLUG: Re: [MLUG] Random Pictures and Apache
Re: [MLUG] Random Pictures and Apache
Email address obfuscation in effect -- please click here to turn it off.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Either load the pics into a hash or array and pick a random number to 
use as the index, or assign the pictures numerical filenames and 
pick a random number to display them.  Either is random 'nuff for your
purpose.

Dave Lloyd

On Tue, 2 Oct 2001, Neil Bradshaw wrote:

> Hey everyone,
> 
> I have PHP and Perl at my disposal. I also have a bunch of pictures. What
> I want to do is make it so that in any given page, a random picture
> selected from a bunch of pictures in a directory within public_html will
> come up.
> 
> Any ideas as to how I should do this? Thanks.
> 
> Regards,
> Neil
> 
> --
> To unsubscribe, go to http://mlug.missouri.edu/members/edit.php
> 
> Archives are available at http://mlug.missouri.edu/list-archives/
> 

--
To unsubscribe, go to http://mlug.missouri.edu/members/edit.php

Archives are available at http://mlug.missouri.edu/list-archives/