I have an array that consists of a bunch of files. I want ALL thenfiles to appear everytine in a completely RANDOM order.
I tried using Shuffle () - but it seems the PHP Manual states there are problems with shuffle (it comes up with the same results very often).
I wanted to randomize the entire array and I have some code, but need assistance finalizing it:
<?
srand (time()); //seed random function
$img="/php/SC/img";
$ads = array( "$img/softnet.htm","$img/wiremix.htm",
"$img/igm.htm",
...etc etc etc...
,"$img/iql.htm","$img/sri.htm");
// array of filenames
srand(time());
$item = rand(0,count($ads)-1);
include($ads[$item]);
?>
I need to LOOP the $ads so ALL the ads appear, again in a random order (like shuffle, only it works better).
Any assistance will help