Mercurial > hg > webaudioevaluationtool
comparison php/save.php @ 2457:d26623bd65e0
Removed browser caching for PHP servers
author | Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk> |
---|---|
date | Tue, 02 Aug 2016 11:22:51 +0100 |
parents | d347dbab980d |
children | 464c6c6692d6 |
comparison
equal
deleted
inserted
replaced
2455:17688ed74bed | 2457:d26623bd65e0 |
---|---|
1 <?php | 1 <?php |
2 header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0"); | |
3 header("Cache-Control: post-check=0, pre-check=0", false); | |
4 header("Pragma: no-cache"); | |
2 error_reporting(0); | 5 error_reporting(0); |
3 $saveFilenamePrefix = isset($_GET['saveFilenamePrefix']) ? $_GET['saveFilenamePrefix'].'-' : ''; | 6 $saveFilenamePrefix = isset($_GET['saveFilenamePrefix']) ? $_GET['saveFilenamePrefix'].'-' : ''; |
4 header('Access-Control-Allow-Origin: *'); | 7 header('Access-Control-Allow-Origin: *'); |
5 header("Content-type: text/xml"); | 8 header("Content-type: text/xml"); |
6 $postText = file_get_contents('php://input'); | 9 $postText = file_get_contents('php://input'); |