"; } } closedir($handle); } if ($handle = opendir('./rotateimages/')) { $which=rand(1,$counter); $counter=0; while (false !== ($entry = readdir($handle))) { if ($entry != "." && $entry != "..") { $counter++; if ($which==$counter) { $array=explode ( " ", $entry ); $randomcourseid=$array[0]; $titlestring=" "; $arraycount=count($array); for ($i = 1; $i < $arraycount; $i++) { $titlestring=$titlestring."$array[$i]"." "; } $titlestring= str_replace ( '.jpg' , '' , $titlestring ); $randomcoursestring = ""; //echo $randomcoursestring; //echo "a href=sample{$randomcourseid}.html>img src='rotateimages/{$entry}' title='{$entry}'>"; } } } closedir($handle); } ?>
FUNDAMENTALS
PAINTING
|
CLICK
CLICK
CLICK
CLICK
|