um ... arrays

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

 



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));
				if(substr($file,-5)=='t.jpg') {
                 echo 'leftrightslide[' . $curimage .']=\'<a
href="?file='.$file.'&c='.$cat.'"><img src="'.$dirname.'/'.$file.'"
style="border:1px solid #bb3621"></a>\';' . "\n";
			 }
                 $curimage++;
               }
       }

       closedir($handle);
   }
   shuffle($files);
   return($files);

now ... why does files not get shuffled?

Is that not the purpose of that function ?

Steven

-- 
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