comparison php/test_write.php @ 3122:3e97bf9d24cf

YAUC
author Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk>
date Wed, 18 Jul 2018 16:52:21 +0100
parents 53d701288da5
children c7de85e03321
comparison
equal deleted inserted replaced
3121:edd536f01e4b 3122:3e97bf9d24cf
1 <?php 1 <?php
2 incluce_once("config.php");
2 $saveLocation = getSaveLocation(); 3 $saveLocation = getSaveLocation();
3 $file = $saveLocation."test-save.xml"; 4 $file = $saveLocation."test-save.xml";
4 $state = file_put_contents($file, "<xml></xml>"); 5 $state = file_put_contents($file, "<xml></xml>");
5 if ($state == FALSE) { 6 if ($state == FALSE) {
6 echo "<response state=\"error\"><message>Could not open file</message></response>"; 7 echo "<response state=\"error\"><message>Could not open file</message></response>";