Mercurial > hg > webaudioevaluationtool
comparison save.php @ 534:a95d323a911e giulio-working
The version I use and works, addresses issues #1622, #1616, partially #1620
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Mon, 22 Feb 2016 04:17:19 +0000 |
parents | 9823ee8c823e |
children | 4cc5bc731a3d |
comparison
equal
deleted
inserted
replaced
531:26b9c01ad2cc | 534:a95d323a911e |
---|---|
1 <?php | 1 <?php |
2 header('Access-Control-Allow-Origin: *'); | 2 header('Access-Control-Allow-Origin: *'); |
3 header("Content-type: text/xml"); | 3 header("Content-type: text/xml"); |
4 error_reporting(0); | |
4 $postText = file_get_contents('php://input'); | 5 $postText = file_get_contents('php://input'); |
5 $sha1_hash = sha1($postText); | 6 $sha1_hash = sha1($postText); |
6 $datetime = date('ymdHis'); | 7 $datetime = date('ymdHis'); |
7 $xmlfile = "save".$datetime."-".$sha1_hash.".xml"; | 8 $xmlfile = "save".$datetime."-".$sha1_hash.".xml"; |
8 $fileHandle = fopen("saves/".$xmlfile, 'w'); | 9 $fileHandle = fopen("saves/".$xmlfile, 'w'); |