annotate save.php @ 1506:131465b92a7a
Paper: merge, started conclusion. edits
author |
Brecht De Man <b.deman@qmul.ac.uk> |
date |
Thu, 15 Oct 2015 21:30:19 +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 ?> |