Mercurial > hg > webaudioevaluationtool
annotate save.php @ 1520:349e0572ca2c
Feature #1298: <setup> node has an optional attribute testPages. Specify the number of pages the test participant to do and the tool will select a random page up to the number specified.
author | Nicholas Jillings <nickjillings@users.noreply.github.com> |
---|---|
date | Thu, 10 Sep 2015 13:16:16 +0100 |
parents | 7388a62e3b93 |
children | de9a0a740b6e 7b0ce3a9ddc1 |
rev | line source |
---|---|
nickjillings@1515 | 1 <?php |
nickjillings@1515 | 2 head('Access-Control-Allow-Origin: *'); |
nickjillings@1515 | 3 $postText = file_get_contents('php://input'); |
nickjillings@1515 | 4 $datetime = date('ymdHis'); |
nickjillings@1515 | 5 $xmlfile = "save".$datetime.".xml"; |
nickjillings@1515 | 6 $fileHandle = fopen("saves/".$xmlfile, 'w'); |
nickjillings@1515 | 7 fwrite($fileHandle, $postText); |
nickjillings@1515 | 8 fclose($fileHandle); |
nickjillings@1515 | 9 ?> |