略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: 安装

2024-11-14

安装

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

add a noteadd a note

User Contributed Notes 4 notes

up
23
ottakar at freezed dot me
4 years ago
This XML module is not provided on a default php (v7) install on Debian GNU/Linux stretch (9.3)
Add it with: sudo apt-get install php-xml
up
-5
Rapitharian at hotmail dot com
3 years ago
To install on CentOS and Redhat, run: sudo yum -y install php-xml
up
-11
morel dot josh at hotmail dot com
5 years ago
For Linux Ubuntu using PHP 7:
sudo apt-get install php7.0-xml
up
-12
shashank at shankee dot com
5 years ago
Installing simpleXml using composer:

"composer require ext-simplexml"

The extension is enabled by default in most distros. You can check the list of php modules using:

"php -m"

官方地址:https://www.php.net/manual/en/simplexml.installation.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3