gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-02 05:07:58 27 4
gpt4 key购买 nike

问题:

使用 tidy_parse_string() 返回:

call to undefined function

尝试过:

搜索:

apt-cache search tidy

但我只在返回的列表中看到这个 php 扩展:

php5-tidy - tidy module for 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:

apt-cache search php7.2-tidy
apt-get update
apt-get -y install php7.2-tidy

关于php - 如何在 Ubuntu 14.04 上安装/启用 PHP 7.2 中的 Tidy 扩展?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58801692/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com