annotate save.php @ 1479:f8a9b2466705
Paper: edits in various sections; Added preliminary analysis page
author |
Brecht De Man <b.deman@qmul.ac.uk> |
date |
Wed, 14 Oct 2015 20:12:52 +0100 |
parents |
|
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 ?> |