Mercurial > hg > webaudioevaluationtool
view save.php @ 746:c64529e5dee4
Save PHP script fix; analysis webpage WIP
author | Brecht De Man <BrechtDeMan@users.noreply.github.com> |
---|---|
date | Fri, 13 Nov 2015 17:59:39 +0000 |
parents | 50c651d27330 |
children | e40eb1c67933 |
line wrap: on
line source
<?php header('Access-Control-Allow-Origin: *'); $postText = file_get_contents('php://input'); $datetime = date('ymdHis'); $xmlfile = "save".$datetime.".xml"; $fileHandle = fopen("saves/".$xmlfile, 'w'); fwrite($fileHandle, $postText); fclose($fileHandle); ?>