annotate save.php @ 1968:e3bcb6c59bdd

Paper: Final edit. Spell checked. Submitted version.
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Thu, 15 Oct 2015 22:19:29 +0100
parents 82f43919f385
children de9a0a740b6e 7b0ce3a9ddc1
rev   line source
b@1478 1 <?php
b@1478 2 head('Access-Control-Allow-Origin: *');
b@1478 3 $postText = file_get_contents('php://input');
b@1478 4 $datetime = date('ymdHis');
b@1478 5 $xmlfile = "save".$datetime.".xml";
b@1478 6 $fileHandle = fopen("saves/".$xmlfile, 'w');
b@1478 7 fwrite($fileHandle, $postText);
b@1478 8 fclose($fileHandle);
b@1478 9 ?>