POP - WAS A MONTHLY AT Rx GALLERY FROM 2004-2007
POP was a monthly party hosted by
Broker/Dealer which brought you
the best in dance music for over 5 years. Throughout
the course of the night, you would have heard music from...
$handler = opendir("records/");
while ($filename = readdir($handler)) {
if ($filename != '.' && $filename != '..' && $filename != 'index.php') {
$records[]=$filename;
}
}
// set some globals
$s = array();
$n = count($records)-1; // the range you require
function set_num() {
global $s, $n;
$add = "yes";
$ran = rand(0, $n);
if(count($s) > 0) {
foreach($s as $sh=>$value) {
if($ran == $value) {
$add = "no";
}
}
}
if($add == "yes") {
$s[] = $ran;
return $ran;
}
else {
$x=set_num();
return $x;
}
}
$num1=set_num();
$num2=set_num();
$num3=set_num();
$num4=set_num();
$num5=set_num();
$num6=set_num();
?>