致命错误:调用未定义的函数 domxml_new_doc() [英] Fatal error: Call to undefined function domxml_new_doc()

查看:26
本文介绍了致命错误:调用未定义的函数 domxml_new_doc()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我想在 php 中使用 xml 库时,我收到此错误

When i want to use xml libraries in php i get this error

Fatal error: Call to undefined function domxml_new_doc() in C:\AppServ\www\direction\db2xml.php on line 5

我该如何解决?

推荐答案

domxml_new_doc() 函数来自 PHP4 DOM 扩展.它已移至 PECL 存储库,并且自 PHP 5.0.0 起不再与 PHP 捆绑在一起.PHP5 引入了许多改进的扩展来处理 XML:

The domxml_new_doc() function is from the PHP4 DOM extension. It has been moved to the PECL repository and is no longer bundled with PHP as of PHP 5.0.0. PHP5 introduced a number of improved extensions to work with XML:

然而,它永远不会随 PHP 5 一起发布,只会随 PHP 4 一起发布.如果您需要 PHP 5 的 DOM XML 支持,您可以使用 DOM 扩展.此 domxml 扩展与 DOM 扩展不兼容.

It will, however, never be released with PHP 5, and will only be distributed with PHP 4. If you need DOM XML support with PHP 5 you can use the DOM extension. This domxml extension is not compatible with the DOM extension.

查看我对

这篇关于致命错误:调用未定义的函数 domxml_new_doc()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆