Made the corrections you suggested and got the thing to work. However, it doesn't really seem random. The same bunches of files always appear adjacent to each other. I cleared the cache on my browser and then reloaded. Even still, it random, but not completely random, the same 3 or 4 files are always adjacent to each other.
What I want is ALL the files in the Array to always appear, ALL in a random order every time the screen is loaded or refreshed.
here's the code.
<?
srand (time()); //seed random function - I also used srand ((double) microtime() * 10000000) - didn't make a difference
$img="/php/SC/img";
$ads = array( "$img/softnet.htm","$img/wiremix.htm","$img/igm.htm","$img/globalinteractive.htm","$img/gocall.htm","$img/1stgenx.htm","$img/poker.htm","$img/realtime.htm","$img/dotcoment.htm","$img/goldplay.htm","$img/i-net.htm","$img/iiga.htm","$img/iql.htm","$img/sri.htm");
// array of filenames
//shuffle and reset array
shuffle($ads);
reset($ads);
//loop through shuffled array
for ($i = 0; $i < count($ads); $i++, $item )
{
include( $ads[$i]);
}
?>