changeset 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
files php/requestKey.php
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/php/requestKey.php	Thu Jan 19 11:20:04 2017 +0000
+++ b/php/requestKey.php	Thu Jan 19 11:23:02 2017 +0000
@@ -58,7 +58,7 @@
 $doc_struct = new SimpleXMLElement('<waetresult/>');
 $doc_struct->addAttribute("key",$key);
 // Add the root
-if (file_exists($testURL)) {
+if (file_exists("../".$testURL)) {
     $test_proto = new SimpleXMLElement(file_get_contents($testURL, FILE_TEXT));
     $doc_struct->addChild($test_proto);
 }