comparison php/requestKey.php @ 2750:7d619727130c

Minor fix to requestKey.php
author Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk>
date Tue, 25 Apr 2017 11:57:53 +0100
parents 7270da0c8647
children 6a36f5777af9
comparison
equal deleted inserted replaced
2748:4b004eb32738 2750:7d619727130c
63 if (file_exists($testURL)) { 63 if (file_exists($testURL)) {
64 $test_proto_doc = new DOMDocument; 64 $test_proto_doc = new DOMDocument;
65 $test_proto_doc->loadXML(file_get_contents($testURL, FILE_TEXT)); 65 $test_proto_doc->loadXML(file_get_contents($testURL, FILE_TEXT));
66 $test_proto = $test_proto_doc->documentElement; 66 $test_proto = $test_proto_doc->documentElement;
67 $test_proto = $doc_struct->importNode($test_proto, true); 67 $test_proto = $doc_struct->importNode($test_proto, true);
68 $test_proto['key'] = $key;
68 $doc_struct->documentElement->appendChild($test_proto); 69 $doc_struct->documentElement->appendChild($test_proto);
69 } 70 }
70 // Add start time 71 // Add start time
71 // Add IP Address information 72 // Add IP Address information
72 // Save the file 73 // Save the file