Mercurial > hg > webaudioevaluationtool
comparison php/test_write.php @ 3123:c7de85e03321
As 5pm approaches,the error count increases (YAUC)
author | Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk> |
---|---|
date | Wed, 18 Jul 2018 16:53:38 +0100 |
parents | 3e97bf9d24cf |
children |
comparison
equal
deleted
inserted
replaced
3122:3e97bf9d24cf | 3123:c7de85e03321 |
---|---|
1 <?php | 1 <?php |
2 incluce_once("config.php"); | 2 include_once("config.php"); |
3 $saveLocation = getSaveLocation(); | 3 $saveLocation = getSaveLocation(); |
4 $file = $saveLocation."test-save.xml"; | 4 $file = $saveLocation."test-save.xml"; |
5 $state = file_put_contents($file, "<xml></xml>"); | 5 $state = file_put_contents($file, "<xml></xml>"); |
6 if ($state == FALSE) { | 6 if ($state == FALSE) { |
7 echo "<response state=\"error\"><message>Could not open file</message></response>"; | 7 echo "<response state=\"error\"><message>Could not open file</message></response>"; |