为什么我这样写的PHP不对呢?<?php
header("Content type: text/xml; charset=GB2312\n");
echo '<?xml version="1.0" encoding="gb2312" ?>';
?>
<tree>
<?php
require_once './global.php';
$path = $tmplRootDir.$_GET[path];
$f = @opendir($path);
while($name = @readdir($f)) {
//echo $path.'/'.$name;
if ($name=="."||$name==".." || is_file($path.'/'.$name)) continue;
else
echo <<<s
<tree text="$name" action="sysTemplateAdmin.php?path=$_GET[path]/$name"  src="sysTemplateTree.php?path=$_GET[path]/$name" target="sm" cId="" />\n
s;
}
?>
</tree>

解决方案 »

  1.   

    你确定php页面有数据输出?在xmlHTTP.open("GET","getUserList.php",false)是asp的吧,
    在xmlHTTP.open("GET","getUserList.php",false)后面加上response.write.responsetext看看有什么输出吧,
      

  2.   

    写错了是response.write xmlHTTP.responsetext
      

  3.   

    那个是客户端的
    首先你直接访问你的php,看看结果对不对
      

  4.   

    给出全部代码!你如何获取内容???responseXML?responseText???
      

  5.   

    用xmlHTTP组件发出GET/POST请求:和用浏览器 打开网页/提交表单 一样