如何在Ubuntu 14.04上的PHP 7.2中安装/启用Tidy扩展?

问题描述 投票:2回答:1

问题:

使用tidy_parse_string()返回:

调用未定义函数

已尝试:

正在搜索:

apt-cache search tidy

但是我只在返回列表中看到此php扩展名:

php5-tidy-php5的整洁模块

我如何为PHP 7.2安装模块?

我已尝试通过删除;:]在fpm 7.2文件夹中的php ini中启用该模块:

; extension = tidy

但是没有扩展名的路径,所以我想它尚未安装。

线索:

Tidy自己的页面说您使用“配置选项”进行安装-我不知道这与apt安装的软件包有何关系。

https://www.php.net/manual/en/tidy.installation.php

详细说明:

包在这里列出:

https://packages.ubuntu.com/disco/php7.2-tidy

但是即使更新列表后,在搜索apt-get时也不会显示。仅显示php5扩展名?

问题:使用tidy_parse_string()返回:调用未定义函数尝试过:搜索:apt-cache search tidy但是我只在返回列表中看到此php扩展名:php5-tidy-tidy ...

php php-7 php-extension tidy
1个回答
4
投票
您好,我使用此命令安装了整洁的代码:
© www.soinside.com 2019 - 2024. All rights reserved.