annotate save.php @ 1956:b3886a4cc3e7

Few changes
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Wed, 14 Oct 2015 09:13:37 +0100
parents 4988c805ff9e
children de9a0a740b6e 7b0ce3a9ddc1
rev   line source
me@1942 1 <?php
me@1942 2 head('Access-Control-Allow-Origin: *');
me@1942 3 $postText = file_get_contents('php://input');
me@1942 4 $datetime = date('ymdHis');
me@1942 5 $xmlfile = "save".$datetime.".xml";
me@1942 6 $fileHandle = fopen("saves/".$xmlfile, 'w');
me@1942 7 fwrite($fileHandle, $postText);
me@1942 8 fclose($fileHandle);
me@1942 9 ?>