annotate save.php @ 1482:81e2a7162d18

Addition of HULTI-GEN interfaces to WAC paper.
author Dave <djmoffat@users.noreply.github.com>
date Wed, 23 Sep 2015 09:13:38 +0100
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 ?>