Mercurial > hg > webaudioevaluationtool
comparison php/test_write.php @ 3017:209532a650da
Merge branch 'master' into vnext
author | Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk> |
---|---|
date | Tue, 12 Sep 2017 14:04:11 +0100 |
parents | 260efd43fe52 |
children | 53d701288da5 |
comparison
equal
deleted
inserted
replaced
3014:cae294cb0242 | 3017:209532a650da |
---|---|
1 <?php | |
2 $file = "../saves/test-save.xml"; | |
3 $state = file_put_contents($file, "<xml></xml>"); | |
4 if ($state == FALSE) { | |
5 echo "<response state=\"error\"><message>Could not open file</message></response>"; | |
6 } else { | |
7 unlink($file) or die("<response state=\"error\"><message>Could not open file</message></response>"); | |
8 echo "<response state=\"OK\"><message>OK</message></response>"; | |
9 } | |
10 ?> |