安装

此扩展默认为启用,编译时可通过下列选项禁用: --disable-xml

这些函数默认为有效的,使用了捆绑的 expat 库。您可以通过参数 --disable-xml 来屏蔽 XML 的支持。如果您将 PHP 编译为 Apache 1.3.9 或更高版本的一个模块, PHP 将自动使用 Apache 捆绑的 expat 库。如果您不希望使用该捆绑的 expat 库,请在运行 PHP 的 configure 配置脚本时使用参数 --with-expat-dir=DIR,其中 DIR 应该指向 expat 安装的根目录。

PHP 的 Windows 版本已内建对此扩展的支持。不需要载入额外的扩展来使用这些函数。

add a note add a note

User Contributed Notes 2 notes

up
3
Alex Ivaylov
6 years ago
Ubuntu users, please note that this extension might not enabled for you by default. You may need to install by doing "sudo apt-get install php-xml" followed by web server restart.
up
0
Cholmondeley
3 years ago
Trying to look at the Oolite wiki, I was diverted to a page reading:

______________________________________________________

MediaWiki 1.31 internal error

Installing some PHP extensions is required.
Required components

You are missing a required extension to PHP that MediaWiki requires to run. Please install:

    xml (more information)

_______________________________________________________

Clicking on (more information) brought me here. Don't understand a word of the gubbins on this page. A complete mystery. "More information" for somebody with silicon chips for a brain, maybe, but not for an ordinary human being! No idea what PHP is. No idea what an xml is. No idea what a parser is. Or how to download whatever I'm supposed to download.
To Top