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.
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))
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));
3 matches
Mail list logo