annotate save.php @ 853:be9e15805532

Bug #1391: Fixed for non-looped playback
author Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk>
date Mon, 14 Sep 2015 11:22:38 +0100
parents 61a211d3a567
children de9a0a740b6e 7b0ce3a9ddc1
rev   line source
n@845 1 <?php
n@845 2 head('Access-Control-Allow-Origin: *');
n@845 3 $postText = file_get_contents('php://input');
n@845 4 $datetime = date('ymdHis');
n@845 5 $xmlfile = "save".$datetime.".xml";
n@845 6 $fileHandle = fopen("saves/".$xmlfile, 'w');
n@845 7 fwrite($fileHandle, $postText);
n@845 8 fclose($fileHandle);
n@845 9 ?>