All pastes #2093946 Raw Edit

Untitled

public text v1 · immutable
#2093946 ·published 2011-11-12 06:43 UTC
rendered paste body
		$array=array();
		$count=0;
		if (preg_match("/mp3$/", "$file")){
			$array[$count] = "http://localhost/?dir=$dir&play=$pathfromroot";
			$count=$count+1;
		}
	}
	$rand_keys = array_rand($array, 1);
	$page = $array[$rand_keys];
	echo "<script>alert('array values $array[0] // $array[1] // $array[2] // $array[3]')</script>";

$array[0] will return the first value, 1-x will be empty..

Any idea on why the Array is failing to be populated?