annotate save.php @ 1509:ea9bdbfc1b06
Hitting enter in any pop-up goes to the next window (or submits, or starts the test)
author |
Brecht De Man <b.deman@qmul.ac.uk> |
date |
Wed, 18 Nov 2015 11:08:52 +0100 |
parents |
302af21c742c |
children |
e40eb1c67933 |
rev |
line source |
b@1478
|
1 <?php
|
b@1508
|
2 header('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 ?> |