Mercurial > hg > webaudioevaluationtool
view php/test_write.php @ 2946:c496aef6448b
Quick fixes; generate_report.py: prepend zero for single digit minute/second values in time
author | Brecht De Man <b.deman@qmul.ac.uk> |
---|---|
date | Fri, 13 Oct 2017 14:19:22 +0200 |
parents | 260efd43fe52 |
children | 53d701288da5 |
line wrap: on
line source
<?php $file = "../saves/test-save.xml"; $state = file_put_contents($file, "<xml></xml>"); if ($state == FALSE) { echo "<response state=\"error\"><message>Could not open file</message></response>"; } else { unlink($file) or die("<response state=\"error\"><message>Could not open file</message></response>"); echo "<response state=\"OK\"><message>OK</message></response>"; } ?>