Mercurial > hg > webaudioevaluationtool
comparison php/requestKey.php @ 2627:0bce959c42ed
Correctly point filename to root of directory (#49)
author | Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk> |
---|---|
date | Thu, 19 Jan 2017 11:23:02 +0000 |
parents | f41389149eab |
children | 9c7501dac617 |
comparison
equal
deleted
inserted
replaced
2626:f41389149eab | 2627:0bce959c42ed |
---|---|
56 // TODO: | 56 // TODO: |
57 // Generate the XML Base file and save it | 57 // Generate the XML Base file and save it |
58 $doc_struct = new SimpleXMLElement('<waetresult/>'); | 58 $doc_struct = new SimpleXMLElement('<waetresult/>'); |
59 $doc_struct->addAttribute("key",$key); | 59 $doc_struct->addAttribute("key",$key); |
60 // Add the root | 60 // Add the root |
61 if (file_exists($testURL)) { | 61 if (file_exists("../".$testURL)) { |
62 $test_proto = new SimpleXMLElement(file_get_contents($testURL, FILE_TEXT)); | 62 $test_proto = new SimpleXMLElement(file_get_contents($testURL, FILE_TEXT)); |
63 $doc_struct->addChild($test_proto); | 63 $doc_struct->addChild($test_proto); |
64 } | 64 } |
65 // Add start time | 65 // Add start time |
66 // Add IP Address information | 66 // Add IP Address information |