Mercurial > hg > webaudioevaluationtool
view pseudo.php @ 2222:4d1aa94202e3
Merged pythonServer-3 into unified pythonServer. Removed pythonServer-legacy. Updated pythonServer to work in scripts subdir.
author | Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk> |
---|---|
date | Thu, 14 Apr 2016 13:19:17 +0100 |
parents | 175cf75946f7 |
children |
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('pseudo/' . '*.xml'); $numtests = 0; if ( $numtests !== false ) { $numtests = count( $files ); } $testID = ($numsaves % $numtests)-1; readfile($files[$testID]); ?>