annotate save.php @ 817:bc6c35b0a49d

More test_creators
author Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk>
date Wed, 07 Oct 2015 22:16:06 +0100
parents 9c579fc05a09
children de9a0a740b6e 7b0ce3a9ddc1
rev   line source
n@816 1 <?php
n@816 2 head('Access-Control-Allow-Origin: *');
n@816 3 $postText = file_get_contents('php://input');
n@816 4 $datetime = date('ymdHis');
n@816 5 $xmlfile = "save".$datetime.".xml";
n@816 6 $fileHandle = fopen("saves/".$xmlfile, 'w');
n@816 7 fwrite($fileHandle, $postText);
n@816 8 fclose($fileHandle);
n@816 9 ?>