Updating test create using questions
author |
Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk> |
date |
Wed, 23 Sep 2015 11:42:11 +0100 |
parents |
|
children |
de9a0a740b6e 7b0ce3a9ddc1 |
rev |
line source |
n@816
|
1 <?php
|
n@816
|
2 head('Access-Control-Allow-Origin: *');
|
n@816
|
3 $postText = file_get_contents('php://input');
|
n@816
|
4 $datetime = date('ymdHis');
|
n@816
|
5 $xmlfile = "save".$datetime.".xml";
|
n@816
|
6 $fileHandle = fopen("saves/".$xmlfile, 'w');
|
n@816
|
7 fwrite($fileHandle, $postText);
|
n@816
|
8 fclose($fileHandle);
|
n@816
|
9 ?> |