Email address obfuscation in effect -- please
click here to turn it off.
[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
Several ways -
One method: you can have the perl/php script get the directory contents
(number of pictures), then generate a random number based on the contents.
use the random number to access the corresponding file in the directory.
(think of the directory contents as an array with n slots). Random number n
loads picture n.
Mark
-----Original Message-----
From: Neil Bradshaw [mailto:EMAIL:PROTECTED]
Sent: Tuesday, October 02, 2001 11:30 PM
To: EMAIL:PROTECTED
Subject: [MLUG] Random Pictures and Apache
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/