Re: random selection from each subfolder

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/22/06, Steven Macintyre <steven@xxxxxxxxxxxxxxxxxxxxx> wrote:
Ok ... previous problem sorted ... now onto the next ...

The client wants the following;

A scroll bar with 3 random thumbs from each subdirectory in the /images/
folder

I was thinking ...

Going into each folder, getting files, pushing into an array - shuffling
array, taking first three items and combine it to a "master" array and use
that ...

As you get more & more images this will slow down, might take a while
but it will happen eventually.

Are you storing any info about images in a database (even just the
name and folder they appear in) ? You could use that to your
advantage..

--
Postgresql & php tutorials
http://www.designmagick.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux