Mercurial > hg > webaudioevaluationtool
annotate pseudo.php @ 2103:cc2fb78ddd89
Minor changes to instructions, demo page, and test examples
author | Brecht De Man <b.deman@qmul.ac.uk> |
---|---|
date | Fri, 19 Feb 2016 16:08:54 +0100 |
parents | 279930a008ca |
children |
rev | line source |
---|---|
nickjillings@1316 | 1 <?php |
nickjillings@1316 | 2 header('Access-Control-Allow-Origin: *'); |
nickjillings@1316 | 3 header("Content-type: text/xml"); |
nickjillings@1316 | 4 $files = glob('saves/' . '*.xml'); |
nickjillings@1316 | 5 $numsaves = 0; |
nickjillings@1316 | 6 if ( $files !== false ) |
nickjillings@1316 | 7 { |
nickjillings@1316 | 8 $numsaves = count( $files ); |
nickjillings@1316 | 9 } |
nickjillings@1316 | 10 |
nickjillings@1316 | 11 $files = glob('pseudo/' . '*.xml'); |
nickjillings@1316 | 12 $numtests = 0; |
nickjillings@1316 | 13 if ( $numtests !== false ) |
nickjillings@1316 | 14 { |
nickjillings@1316 | 15 $numtests = count( $files ); |
nickjillings@1316 | 16 } |
nickjillings@1316 | 17 |
nickjillings@1316 | 18 $testID = ($numsaves % $numtests)-1; |
nickjillings@1316 | 19 |
nickjillings@1316 | 20 readfile($files[$testID]); |
nickjillings@1316 | 21 ?> |