RE: [PHP] um ... arrays

2006-12-21 Thread Edward Kay
the file names to the $files array, shuffle($files) and then have a foreach loop to iterate over $files and output the HTML to display them. Edward > -Original Message- > From: Steven Macintyre [mailto:[EMAIL PROTECTED] > Sent: 21 December 2006 13:45 > To: php-general@lists.

Re: [PHP] um ... arrays

2006-12-21 Thread Stut
Steven Macintyre wrote: I have the following; $files = array(); $curimage=0; if($handle = opendir($dirname)) { while(false !== ($file = readdir($handle))){ if(eregi($pattern, $file)){ $filedate=date ("M d, Y H:i:s", filemtime($file))

[PHP] um ... arrays

2006-12-21 Thread Steven Macintyre
Hi ... I have the following; $files = array(); $curimage=0; if($handle = opendir($dirname)) { while(false !== ($file = readdir($handle))){ if(eregi($pattern, $file)){ $filedate=date ("M d, Y H:i:s", filemtime($file));