annotate save.php @ 1484:fdf8a9e9fbe6

Paper: added ideas for in-the-browser visualisation, diagnostics and analysis
author Brecht De Man <b.deman@qmul.ac.uk>
date Wed, 23 Sep 2015 14:42:02 +0200
parents 8be2d08fbe15
children de9a0a740b6e 7b0ce3a9ddc1
rev   line source
b@1481 1 <?php
b@1481 2 head('Access-Control-Allow-Origin: *');
b@1481 3 $postText = file_get_contents('php://input');
b@1481 4 $datetime = date('ymdHis');
b@1481 5 $xmlfile = "save".$datetime.".xml";
b@1481 6 $fileHandle = fopen("saves/".$xmlfile, 'w');
b@1481 7 fwrite($fileHandle, $postText);
b@1481 8 fclose($fileHandle);
b@1481 9 ?>