Hello,
Here's my problem: I would like to organize a listening test where people can listen to two sets of wave files through a link in a web page. Next to it there would be a form where people can give some score and by submitting it, go to the next page with another wave file, etc.
I use a INI file like this:
[set1]
directory = set1
samples = sample1.wav,sample2.wav,sample3.wav...
[set2]
directory = set2
samples = sample1.wav,sample2.wav,sample3.wav...
and then I use parse_ini_file to store the settings in arrays, for example:
<?
$ini_array = parse_ini_file("myIni.ini", TRUE);
$samples = $ini_array['set1']['samples'];
$sample = explode(",",$samples);
...
?>
Now, I need to alternate the two types of wave files coming from the two different sets, and I need to randomize them per session, so that two persons cannot listen to them in the same order. How can I do this ?
thanks for your help.
Miguel