Mercurial > hg > webaudioevaluationtool
changeset 2751:6a36f5777af9
Alternative requestKey.php
author | Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk> |
---|---|
date | Tue, 25 Apr 2017 12:01:32 +0100 |
parents | 7d619727130c |
children | a99c5f008c2d |
files | php/requestKey.php |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/php/requestKey.php Tue Apr 25 11:57:53 2017 +0100 +++ b/php/requestKey.php Tue Apr 25 12:01:32 2017 +0100 @@ -58,14 +58,13 @@ $doc_struct = new DOMDocument; $doc_struct->preserveWhiteSpace = false; $doc_struct->formatOutput = true; -$doc_struct->loadXML("<waetresult/>"); +$doc_struct->loadXML("<waetresult key=".$key."/>"); // Add the root if (file_exists($testURL)) { $test_proto_doc = new DOMDocument; $test_proto_doc->loadXML(file_get_contents($testURL, FILE_TEXT)); $test_proto = $test_proto_doc->documentElement; $test_proto = $doc_struct->importNode($test_proto, true); - $test_proto['key'] = $key; $doc_struct->documentElement->appendChild($test_proto); } // Add start time