Mercurial > hg > webaudioevaluationtool
view pseudo.php @ 531:26b9c01ad2cc Dev_main
Fixed typo
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Sun, 21 Feb 2016 03:35:27 +0000 |
parents | 1fc9f982b778 |
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]); ?>