Mercurial > hg > webaudioevaluationtool
view php/pseudo.php @ 2429:e4fcf54abcf5
Instructions typos; notice to refer to wiki for up to date version
Some typos were corrected while copying to the wiki. The wiki should henceforth be the most frequently updated instructions, and a markdown-to-PDF process is not yet in place.
author | Brecht De Man <b.deman@qmul.ac.uk> |
---|---|
date | Sat, 28 May 2016 10:29:03 +0200 |
parents | 43ab418ba4b8 |
children | 17d8ac94b284 |
line wrap: on
line source
<?php header('Access-Control-Allow-Origin: *'); header("Content-type: text/xml"); $files = glob('../saves/' . '*.xml'); $numsaves = 0; if ( $files !== false ) { $numsaves = count( $files ); } $files = glob('tests/' . '*.xml'); $numtests = 0; if ( $numtests !== false ) { $numtests = count( $files ); } $testID = ($numsaves % $numtests)-1; readfile($files[$testID]); ?>