在php中启用domxml [英] Enabling domxml in php

查看:93
本文介绍了在php中启用domxml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了xampp 1.7.3,php版本是PHP 5.3.1.当我使用函数domxml_open_file(),它抛出一个错误调用未定义的函数domxml_open_file()。

I have installed xampp 1.7.3 and the php version is PHP 5.3.1.When iam using the function domxml_open_file() ,it throwing an error Call to undefined function domxml_open_file().

我如何在php.s中启用DOM提前提交。

How i can enable DOM in php.Thanks in advance.

我可以找到'extension = php_domxml.dll' / code>在php.ini文件,
所以我添加extension = php_domxml.dll这在php.ini文件

I canot find 'extension=php_domxml.dll' in php.ini file, so i added extension=php_domxml.dll this in php.ini file

推荐答案

DOMXML is the old PHP4 XML extension and no longer bundled with PHP5. You have to get it from PECL:


此PECL扩展不与PHP捆绑在一起。有关安装此PECL扩展的信息,请参见安装PECL扩展的手册。附加信息如新版本,下载,源文件,维护者信息和CHANGELOG可以在这里找到:» http://pecl.php.net/package/domxml

请注意,此PECL扩展程序的DLL目前不可用

PHP5具有新的DOM扩展程序等等)应该可用开箱即用:

PHP5 features a new DOM extension, which (among others) should be available out of the box:

$dom = new DOMDocument;

看一些我以前关于DOM使用的答案,还可以在 DevZone,了解PHP5中可用的XML扩展的概述

这篇关于在php中启用domxml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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