annotate save.php @ 848:bfbd2c6ab8fb

APE: Multiple Screen Drag and Drop interface. Still needs more work for right screens
author Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk>
date Thu, 10 Sep 2015 12:43:47 +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 ?>