看错了。原因在这:Deprecated functions There are quite a few functions that do not fit into the DOM standard and should no longer be used. These functions are listed in the following table. The function DomNode_append_child() has changed its behaviour. It now adds a child and not a sibling. If this breaks your application, use the non-DOM function DomNode_append_sibling(). 表格 1. Deprecated functions and their replacements ========================== Old function New function -------------------------- xmldoc domxml_open_mem() xmldocfile domxml_open_file() domxml_new_xmldoc domxml_new_doc() ……
改用domxml_open_file()就对了;)
Warning: domxml_open_file() [function.domxml-open-file]: warning: in D:\Apache Group\Apache2\htdocs\Test\x02.php on line 3Warning: domxml_open_file() [function.domxml-open-file]: failed to load external entity "board.xml" in D:\Apache Group\Apache2\htdocs\Test\x02.php on line 3ini里开了的 dll也copy到系统目录下了的
There are quite a few functions that do not fit into the DOM standard and should no longer be used. These functions are listed in the following table. The function DomNode_append_child() has changed its behaviour. It now adds a child and not a sibling. If this breaks your application, use the non-DOM function DomNode_append_sibling(). 表格 1. Deprecated functions and their replacements
==========================
Old function New function
--------------------------
xmldoc domxml_open_mem()
xmldocfile domxml_open_file()
domxml_new_xmldoc domxml_new_doc()
……
$doc = xmldocfile(realpath("board.xml"));此类扩展需要有绝对路径,函数realpath参照程序所在路径构造目标文件的绝对路径。需自行保证得到的路径真实有效。