<?php $opid=$_GET[op];
 $result=sql_select("select * from examinationpaper where epid=$opid");
  $rows=loop_query($result);
$ename=$rows[epname];
header("Content-type: text/html; charset=utf-8");
$xml = new DOMDocument();
$xml->load(../upload/files/$ename);//这块有错误,显示../是错误的$webs = $xml->getElementsByTagName('Question');foreach ($webs as $Question){
//echo $Question->getAttribute('QuestionID')."<br/>"; //读一个节点的属性
$names = $Question->getElementsByTagName("QuestionID");
$name3 = $names->item(0)->nodeValue;
echo "答案:".$name3."<br/><br/>";
}
?>上面的代码:$xml->load(../upload/files/$ename);//这块有错误,显示../是错误的上级目录难道不是应该../写吗?
请问该如何修改,谢谢!!