nicholas@2510: ERROR".$key."Could not open file for writing");
nicholas@2510: }
nicholas@2510: fclose($fileHandle);
nicholas@2510: // TODO:
nicholas@2510: // Generate the XML Base file and save it
nicholas@2510: $doc_struct = new SimpleXMLElement('');
nicholas@2510: $doc_struct->addAttribute("key",$key);
nicholas@2626: // Add the root
nicholas@2627: if (file_exists("../".$testURL)) {
nicholas@2626: $test_proto = new SimpleXMLElement(file_get_contents($testURL, FILE_TEXT));
nicholas@2626: $doc_struct->addChild($test_proto);
nicholas@2626: }
nicholas@2510: // Add start time
nicholas@2510: // Add IP Address information
nicholas@2510: // Save the file
nicholas@2510: $doc_struct->asXML($filename);
nicholas@2510: echo "OK".$key."";
nicholas@2510: ?>