Randomize ImageGalleries
From: knoak (knoakske_at_hotmail.com)
Date: 05/31/04
- Next message: Garp: "Re: Randomize ImageGalleries"
- Previous message: Andy Hassall: "Re: Coding/form problem"
- Next in thread: Garp: "Re: Randomize ImageGalleries"
- Reply: Garp: "Re: Randomize ImageGalleries"
- Reply: Andy Hassall: "Re: Randomize ImageGalleries"
- Reply: Pedro Graca: "Re: Randomize ImageGalleries"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 31 May 2004 08:22:34 -0700
Hi there,
I have i site with photo-albums on it.
to create a new album all i do is create a new
folder. I use the following code.
My only question is, how can i randomize the output,
so the order of the folders is different every time?
++++++++++++++++++++++++++++++++++++++++++++++++++++
function CreateFolders()
{
$the_array = Array();
$handle = opendir('.');
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != ".." && $file != "index.php") {
$the_array[] = $file;
}
}
closedir($handle);
foreach ($the_array as $PicFolder) {
echo 'table with clickable 1st thumb'
};
++++++++++++++++++++++++++++++++++++++++++++++++++++
I guess it's easy, but since i'm a newbie, i don't know
how to get it to work..
Any help would be greatly appreciated.
greetings knoak
- Next message: Garp: "Re: Randomize ImageGalleries"
- Previous message: Andy Hassall: "Re: Coding/form problem"
- Next in thread: Garp: "Re: Randomize ImageGalleries"
- Reply: Garp: "Re: Randomize ImageGalleries"
- Reply: Andy Hassall: "Re: Randomize ImageGalleries"
- Reply: Pedro Graca: "Re: Randomize ImageGalleries"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|