annotate save.php @ 1961:bc31d1bc984c

Completed merge.
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Thu, 15 Oct 2015 10:32:15 +0100
parents f8a9b2466705
children de9a0a740b6e 7b0ce3a9ddc1
rev   line source
b@1479 1 <?php
b@1479 2 head('Access-Control-Allow-Origin: *');
b@1479 3 $postText = file_get_contents('php://input');
b@1479 4 $datetime = date('ymdHis');
b@1479 5 $xmlfile = "save".$datetime.".xml";
b@1479 6 $fileHandle = fopen("saves/".$xmlfile, 'w');
b@1479 7 fwrite($fileHandle, $postText);
b@1479 8 fclose($fileHandle);
b@1479 9 ?>